Hi madoodia, Am 14.05.2014 16:04, schrieb Mahmoodreza Aarabi: > look, i have a main.py and a main.spec, i want to use "pip install <a > git package>" for installing a git package. > and i should use load_entry_point method. > but please tell me that i should use this method in main.py or main.spec?
You do not need to spawn pip as an external process. Sorry, I'm a fool
as I did not think about this earlier.
pip is a normal Python package, so you can just do something like this
in your main.py:
import pip
pip.main('install', '<a git package'>)
Please note: this is an untested scratch.
Thus you do not need to worry about how to bundle pip, as all required
modules should be bundled, too. (You may need a hook, though).
You may still need some more tweaking for making this actually working
in the bundled application -- and you may need to teach your bundled
application how to actually import the installed package.
--
Schönen Gruß
Hartmut Goebel
Dipl.-Informatiker (univ), CISSP, CSSLP
Information Security Management, Security Governance, Secure Software
Development
Goebel Consult, Landshut
http://www.goebel-consult.de
Blog: http://www.goebel-consult.de/blog/kurzanalyse-disconnect.me
Kolumne:
http://www.cissp-gefluester.de/2012-04-compliance-bringt-keine-sicherheit
Goebel Consult ist Mitglied bei http://www.7-it.de/
smime.p7s
Description: S/MIME Cryptographic Signature
