Easy install / setuptools

Dominique.Holzwarth at ch.delarue.com Dominique.Holzwarth at ch.delarue.com
Thu May 29 05:29:00 EDT 2008


Hi everyone

I'm trying to figure out the "best" way to distribute my own python packages. Basicly, what I want is to have something like an "installer.exe" (on windows) which puts my package under Python/Lib/site-packages (so that it can be found via the PYTHONPATH).

I've played around a bit with "easy install" and "setuptools" and the .egg format. I've already managed to create a "myPackage.egg" file with setup tools and "install" (it's just a copying) it ito the site-packages directory using "easy install".

What I was wondering now is if there's a way to actually EXTRACT the egg file and put the extracted file (i.e. the .py file) under site-packages. And not the .egg?

The problem with egg files is that you can't use "open(os.path.join(os.path.dirname(__file__),'myFile')" and I'd need to rewrite such code which I'd like to avoid if possible. Also, I don't know whether leaving the python scripts packed inside the egg file is slower for execution or not...

Would be cool if someone could give me some inputs on how to distribute python packages in an easy and effective way :-)

Thx in advance
Dominique


*****************************************************************************
This e-mail and any files attached are strictly confidential, may be legally
privileged and are intended solely for the addressee. If you are not the
intended recipient please notify the sender immediately by return email and
then delete the e-mail and any attachments immediately.

The views and or opinions expressed in this e-mail are not necessarily the
views of De La Rue plc or any of its subsidiaries and the De La Rue Group
of companies, their directors, officers and employees make no representation
about and accept no liability for its accuracy or completeness.

You should ensure that you have adequate virus protection as the De La Rue
Group of companies do not accept liability for any viruses.

De La Rue plc Registered No.3834125, De La Rue Holdings plc Registered
No 58025 and De La Rue International Limited Registered No 720284 are all
registered in England with their registered office at:
De La Rue House, Jays Close, Viables, Hampshire RG22 4BS
*****************************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20080529/4523bcff/attachment.html>


More information about the Python-list mailing list