https://pantsbuild.org/ logo
#general
Title
# general
r

rough-minister-58256

01/03/2017, 11:23 PM
Copy code
[illuminati source (kwlzn/dep_clean)]$ /usr/bin/python ~/bin/pex27 six
Python 2.7.10 (default, Jul 30 2016, 19:40:32) 
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> from six import wraps
Traceback (most recent call last):
  File "<console>", line 1, in <module>
ImportError: cannot import name wraps
>>> ^D
[illuminati source (kwlzn/dep_clean)]$ /usr/bin/python ~/bin/pex27 six
Python 2.7.10 (default, Jul 30 2016, 19:40:32) 
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> import sys
>>> def scrub_sys_path():
...   sys.path = [p for p in sys.path if 'Extras/lib/python' not in p]
... 
>>> scrub_sys_path()
>>> from six import wraps
>>> import six; six.__file__
'/private/var/folders/3t/xkwqrkld4xxgklk2s4n41jb80000gn/T/tmpEXfjuN/.deps/six-1.10.0-py2.py3-none-any.whl/six.py'
>>>