Open Bug 774911 Opened 13 years ago Updated 2 years ago

Remove pythonpath.py

Categories

(Firefox Build System :: General, defect)

defect

Tracking

(Not tracked)

People

(Reporter: gps, Unassigned, Mentored)

References

Details

(Whiteboard: [mozbase][lang=make])

Attachments

(1 file)

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.
We will have to port all of the "standalone" utils to be "installed" into the virtualenv's path
(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?
adding a .pth is fine. Really, there are multiple ways of doing this of which that is one
Blocks: 775756
Whiteboard: [mozbase]
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.
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.
Is this completed ? If not please let me know !! I will do this !
(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.
I m not working on this !! I am working on other bug. Thanks !
Mentor: ted
Whiteboard: [mozbase][mentor=ted][lang=make] → [mozbase][lang=make]
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.
I would like to work on this bug if it is possible. Thank you.
Attached file Bug774911
Can I get a feedback?
Attachment #8936132 - Flags: review?(gps)
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)
Product: Core → Firefox Build System
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: