Github user davies commented on the pull request:

    https://github.com/apache/spark/pull/2492#issuecomment-56463455
  
    > Maybe my JIRA was misleadingly named; my motivation here is allowing 
users to specify versions of packages that take precedence over other versions 
of that same package that might be installed on the system, not in overriding 
modules included in Python's standard library (although the ability to do that 
is a side-effect of this change).
    
    Understood, this side-effect is bit dangerous. The third-package could 
appear in sys.path in any order, such as 
    
    ```python
    >>> import sys
    >>> sys.path
    ['', '//anaconda/lib/python2.7/site-packages/DPark-0.1-py2.7.egg', 
'//anaconda/lib/python2.7/site-packages/protobuf-2.5.0-py2.7.egg', 
'//anaconda/lib/python2.7/site-packages/msgpack_python-0.4.2-py2.7-macosx-10.5-x86_64.egg',
 '//anaconda/lib/python2.7/site-packages/setuptools-3.6-py2.7.egg', 
'/Users/daviesliu/work/spark/python/lib', 
'/Users/daviesliu/work/spark/python/lib/py4j-0.8.2.1-src.zip', 
'/Users/daviesliu/work/spark/python', '//anaconda/lib/python27.zip', 
'//anaconda/lib/python2.7', '//anaconda/lib/python2.7/plat-darwin', 
'//anaconda/lib/python2.7/plat-mac', 
'//anaconda/lib/python2.7/plat-mac/lib-scriptpackages', 
'//anaconda/lib/python2.7/lib-tk', '//anaconda/lib/python2.7/lib-old', 
'//anaconda/lib/python2.7/lib-dynload', 
'//anaconda/lib/python2.7/site-packages', 
'//anaconda/lib/python2.7/site-packages/PIL', 
'//anaconda/lib/python2.7/site-packages/runipy-0.1.0-py2.7.egg']
    ```
    it's not easy to find a position which is before third-package but after 
standard module.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to