Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PYTHONPATH=/nix/store/...python-nose/.../site-packages python import nose fails #209

Closed
cillianderoiste opened this issue Dec 6, 2012 · 2 comments
Assignees

Comments

@cillianderoiste
Copy link
Member

In #206 we remove the setuptools site.py which is created during the installation. Previously it would have been possible to do the following:

$ PYTHONPATH=/nix/store/dfvw3wz9sxgmknhicyl4jyzn4wjsd87p-python-nose-1.2.1/lib/python2.7/site-packages python
Python ....
>>> import nose

This is because the generated site.py would process .pth files in the site-packages directory and add the paths to the egg files to the sys.path.

At the moment it is possible to add the full path to the egg to PYTHONPATH in order for it to be found.

Perhaps we should include the setuptools site.py to the python wrapper to get back the ability to load eggs via the site-packages directory as described above. @chaoflow what do you think?

@ghost ghost assigned cillianderoiste Dec 6, 2012
@cillianderoiste
Copy link
Member Author

I should add, I haven't verified this myself but @shlevy reported it on IRC, and I'm pretty sure this is the cause.

@shlevy
Copy link
Member

shlevy commented Dec 6, 2012

I can verify that that literal command behaves as reported, and that if I modify the PYTHONPATH to include the egg directly it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants