[Distutils] easy_install deprecated?

2015-06-18 Thread Thomas Güttler
Some packages have docs like this: {{{ Installation == easy_install foo or pip install foo }}} Maybe I am too new in the python packaging world, but for my eyes calling easy_install looks deprecated. My goal is to make the python world more friendly for newcomers. Are there still re

Re: [Distutils] easy_install deprecated?

2015-06-18 Thread Randy Syring
Others may have a more informed opinion, but the only reason I know of to use easy_install is if you are depending on packages that ship compiled eggs for Windows. pip doesn't install eggs and many Windows machines do not have developer tools setup. If your package doesn't ship C extensions a

Re: [Distutils] easy_install deprecated?

2015-06-18 Thread Wes Turner
On Jun 18, 2015 8:17 AM, "Thomas Güttler" wrote: > > Some packages have docs like this: > > {{{ > Installation > == > > easy_install foo > > or > > pip install foo > }}} > > Maybe I am too new in the python packaging world, but > for my eyes calling easy_install looks deprecated. > > My go

[Distutils] pip caching docs lie?

2015-06-18 Thread Chris Withers
Hi All, These two sections: https://pip.pypa.io/en/latest/reference/pip_install.html#caching https://pip.pypa.io/en/latest/reference/pip_install.html#wheel-cache ...imply that downloading packages with pip 7.x+ should create an offline cached egg. Not so: (pip_cache)tweedledee:virtualenvs c

Re: [Distutils] pip caching docs lie?

2015-06-18 Thread Donald Stufft
On June 18, 2015 at 2:50:12 PM, Chris Withers (ch...@simplistix.co.uk) wrote: > > What am I missing? Are those docs just plain wrong? > Do you have the “wheel” package installed? --- Donald Stufft PGP: 7C6B 7C5D 5E2B 6356 A926 F04F 6E3C BCE9 3372 DCFA ___

[Distutils] executable egg & top-level __main__.py

2015-06-18 Thread Dimitri Maziuk
Hi all, I have the following directory structure: myegg/ pkg1/ __init__.py ... pkg2/ __init__.py ... pkg3/ __init__.py ... setup.py __main__.py If I zip this into myegg.egg and run "python myegg.egg", that runs the top-level __m

Re: [Distutils] executable egg & top-level __main__.py

2015-06-18 Thread Alex Clark
On 6/18/15 4:46 PM, Dimitri Maziuk wrote: Hi all, I have the following directory structure: myegg/ pkg1/ __init__.py ... pkg2/ __init__.py ... pkg3/ __init__.py ... setup.py __main__.py If I zip this into myegg.egg

Re: [Distutils] executable egg & top-level __main__.py

2015-06-18 Thread Daniel Holth
You are doing the right thing zipping it up yourself instead of relying on bdist_egg. Eggs are a plugin or package format and are not designed to be directly runnable. There are some utilities to help you make executable zip files: https://docs.python.org/dev/library/zipapp.html https://pex.read