Open
Bug 774911
Opened 13 years ago
Updated 2 years ago
Remove pythonpath.py
Categories
(Firefox Build System :: General, defect)
Firefox Build System
General
Tracking
(Not tracked)
NEW
People
(Reporter: gps, Unassigned, Mentored)
References
Details
(Whiteboard: [mozbase][lang=make])
Attachments
(1 file)
389 bytes,
text/plain
|
Details |
I'm pretty sure pythonpath.py can go away now that we have a virtualenv.
https://mxr.mozilla.org/mozilla-central/search?string=pythonpath
Basically, everything going through pythonpath.py can be replaced with $(PYTHON). We /may/ need an additional variable in config.mk or autoconf.mk to handle the PYTHONDONTWRITEBYTECODE case.
If someone confirms my assessment, I'll volunteer to mentor this.
Reporter | ||
Comment 1•13 years ago
|
||
Comment 2•13 years ago
|
||
We will have to port all of the "standalone" utils to be "installed" into the virtualenv's path
Reporter | ||
Comment 3•13 years ago
|
||
(In reply to Jeff Hammel [:jhammel] from comment #2)
> We will have to port all of the "standalone" utils to be "installed" into
> the virtualenv's path
Consolidating all the .py files into packages/modules is probably something that should be done anyway. That's what build/pylib is for!
I wonder if we could add a .pth pointing to build/? Or, is there some magic packaging foo that won't like that there isn't a formal package?
Comment 4•13 years ago
|
||
adding a .pth is fine. Really, there are multiple ways of doing this of which that is one
Updated•12 years ago
|
Whiteboard: [mozbase]
Comment 5•12 years ago
|
||
I think bug 841713 is the only non-trivial part of this. Once that's fixed this should be mostly mechanical changes, just changing $(PYTHON_PATH) ... into $(PYTHON) ... and ensuring nothing breaks.
Whiteboard: [mozbase] → [mozbase][mentor=ted][lang=make]
@ted: I am newbie, would want start with fixing this bug, and need help in doing it.
Reporter | ||
Comment 7•12 years ago
|
||
Ted's on vacation, but I can help you.
Using the link in comment #1, first identify all the scripts invoked with pythonpath.py. For each one of these, we'll need to port the code to not use pythonpath.py. If they are passing -I<path> to pythonpath.py, we'll need to ensure those paths are part of the virtualenv created during configure (see /build/virtualenv). If they aren't, we should consider adding those paths to the virtualenv. The easy way to test is to just remove the pythonpath.py from the invocation. If the invocation works, great. If not, we'll need to add paths to the virtualenv environment.
Make sense?
sorry for the late reply, I would like to know how to build and run the code that i have made changes to.
Comment 9•11 years ago
|
||
Is this completed ? If not please let me know !! I will do this !
Reporter | ||
Comment 10•11 years ago
|
||
(In reply to Srikar Ananthula [:srikar] from comment #9)
> Is this completed ? If not please let me know !! I will do this !
This is not completed. But it's a somewhat involved bug. It constitutes many small patches to many small Python utilities. Any work, however small, will be appreciated.
Comment 11•11 years ago
|
||
I m not working on this !! I am working on other bug. Thanks !
Assignee | ||
Updated•11 years ago
|
Mentor: ted
Whiteboard: [mozbase][mentor=ted][lang=make] → [mozbase][lang=make]
Comment 12•7 years ago
|
||
Hey, i am new to open source and I would really like to help. I have been working on python from the past two years and i am really eger to be a part of opem source community.
Any guidance would be really appreciated.
Thanks.
Comment 13•7 years ago
|
||
I would like to work on this bug if it is possible. Thank you.
Reporter | ||
Comment 15•7 years ago
|
||
Comment on attachment 8936132 [details]
Bug774911
This patch doesn't really do anything meaningful.
But this bug is still actionable. If you have any questions on how to work on it, leave me a needinfo request. You can also ask questions in #build on irc.mozilla.org.
Attachment #8936132 -
Flags: review?(gps)
Updated•7 years ago
|
Product: Core → Firefox Build System
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•