timothycrosley / deprecated.pies

The simplest (and tastiest) way to write one program that runs on both Python 2 and Python 3.
MIT License
148 stars 7 forks source link

pies2overrides breaks virtualenv #32

Closed mgedmin closed 9 years ago

mgedmin commented 9 years ago

As a side effect of an innocent-seeming pip install isort I ended up with a non-functional virtualenv thanks to incomplete copies of standard-library packages (copyreg.py? configparser.py?) polluting my virtualenv's site-packages directory. I wasted two or three hours debugging this: https://github.com/pypa/virtualenv/issues/671

Please don't install modules that clash with the standard library into the global namespace.

timothycrosley commented 9 years ago

@mgedmin this has been discussed a few times. Pies DOES NOT install modules that clash with standard library names, instead it installs packages that do not exist in the Python 2 namespace, but do exist in the Python 3 namespace into the Python 2 namespace. Any issues with this are inevitably because somehow you have the Python2 version of pies installed in a Python 3 environment. The fix is simply to install pies outside of virtualenv (it's a command line tool, no need to be part of an environment) and run it across any code base (which it supports)

Thanks!

~Timothy

blueyed commented 9 years ago

For reference: when using wheels this will happen currently: #44.