-
Notifications
You must be signed in to change notification settings - Fork 74
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
[build] setup.py should not modify the PYTHONPATH #1011
Comments
As i said the build_lib path have to be provided to html2man. Then i don't see how it can work without. But it can be useful to see your command line. |
Yes my build system gicves the right PYTHONPATH. add the build_lib to the PYTHONPATH instead of overriding it something like
warning not tested. I |
What i dont understand is what is the content of We should have a contain from |
I need to check what is the content of build_lib I use build_man without build because it already check thaht build was run. |
But as you can see the python path is already complemented. No ? |
Here the pydistutils file used to build the pacakge [clean] |
~$ PYTHONPATH='toto' python
so yes... |
Then i dont really see how to fix the issue, cause i dont really see why it do not work in your case. |
When I print the env during the build, I get this
so the PYTHONPATH setup by pybuild is ok |
do not worry we will find :) |
Oh, BTW this thing in your path: |
Can you hack BuildMan to display some informations:
|
In fact I realize that this is a problem for build_man AND build_doc ... I instrument the code and I tell you of rboth cases . |
here we go
So there is at lease two wrong directory before the right one in sys.path |
so the path added in front of sys.path
is the wrong path
the right path is the one from PYTHONPATH which is given to setup.py via the pydist config file. |
Writing a Build systems is touchy ;) |
Here just a example of small BuildMan target http://sources.debian.net/src/cmdtest/0.27-1/setup.py/?hl=46#L46 I try this sort of minimalist command and report back |
Well, anyway i don't really understand the problem of adding a non existing path to the PYTHONPATH. It should just use the next one, then the next one... No? If it do not exists we can avoid to add it. That is why i put a |
For now I build once more the module + extension just for the man pages and the sphinx doc. I need to discuss about this problme with Piotr (the guy behind pybuild) |
Then i think the better think to do is to patch PYTHONPATH from the current PYTHONPATH (instead of using sys.path). The resulting path order should be better, and maybe it will fix your issue. |
This is no more the case. |
Same problem observed on PyFAI
here my solution as an example
Maybe it is possible to avoid the env variable but I di d not investigate this.
The text was updated successfully, but these errors were encountered: