11

What must I put into distutils.cfg to prevent easy_install from ever installing a zipped egg? The compression is a nice thought, but I like to be able to grep through and debug that code.

I pulled in some dependencies with python setup.py develop . A closer look reveals that also accepts the --always-unzip flag. It would just be nice to set that as default.

joeforker
  • 40,459
  • 37
  • 151
  • 246

4 Answers4

14

the option is zip-ok, so put the following in your distutils.cfg:

[easy_install]

# i don't like having zipped files.
zip_ok = 0
Autoplectic
  • 7,566
  • 30
  • 30
3

I doubt there is a setting in distutils.cfg for this, as easy_install is not a part of distutils. But run easy_install like this:

easy_install --always-unzip

and it should solve the problem.

Lennart Regebro
  • 167,292
  • 41
  • 224
  • 251
0

One solution?

easy_install pip
rm easy_install
ln -s easy_install pip
joeforker
  • 40,459
  • 37
  • 151
  • 246
0

I had the issue using buildout, and the solved it by adding:

[buildout]
unzip = true

in the buildout.cfg file

gurney alex
  • 13,247
  • 4
  • 43
  • 57