weberc2 / builder

Prototype build tool
0 stars 0 forks source link

py_virtualenv doesn't work properly #20

Closed weberc2 closed 4 years ago

weberc2 commented 4 years ago

py_virtualenv attempts to configure a virtual environment by munging PYTHONPATH, but PYTHONPATH is apparently just a way add extra directories to the Python lookup path (not to restrict the list of directories). As such, Python is adding to its search path a bunch of its own "site_packages".

Rather than trying to work around the complicated Python lookup rules, it would probably be better to just use virtualenv directly.

Open Questions