How to unpack python eggs?

I am trying to relate some egg dependencies when using py2exe and, as indicated on the py2exe website, it does not work with them, and I need to unzip them first. I tried to start first easy_install -m lxml, and then easy_install --always-unzip lxml==2.2.2, but that didn't work. Then I tried to set the default unloading behavior by setting it to distutils.cfg. I did not find the last file, so I created an environment variable HOMEand created a pydistutils.cfgfile there with this content:

[easy_install]
zip_ok = 0

but easy_install still doesn’t unpack the eggs. What is the easiest way to do this?

+3
source share
2 answers

/ : - zip, zipfile- python, . , easy_install "easy_install_pre.exe" .bat "easy_install.bat":

easy_install_pre.exe %1
unzip_eggs.py %1
+2

zippped package . .

, , , , . zipped- , , -. easy_install, Python 2.5.

0

Source: https://habr.com/ru/post/1727599/


All Articles