[Distutils] Wheels and console script entry point wrappers (Was: Replacing pip.exe with a Python script)

Vinay Sajip vinay_sajip at yahoo.co.uk
Tue Jul 16 21:04:56 CEST 2013


Paul Moore <p.f.moore <at> gmail.com> writes:

> The only other part of the equation is to ensure that wheel *builders* do
> not put setuptools-generated entry point wrappers into the scripts
> directory. Before I embarrass myself again () is this also something you
> already have implemented in distlib? 

No, because I didn't want to embarrass you ;-)

Seriously - no, because that is policy rather than mechanism. The way distil
builds wheels is to perform an installation into a working area, and then
call Wheel.build in distlib pointing to the work area. The distlib code just
copies what's in the work area to the wheel. Currently the install-scripts
part of distil installs all scripts into the work area, including ones
defined in exports; it should be a five-minute job to ensure that scripts in
exports are excluded from this, when building wheels.

A version of distil with these updates should appear soon - I'm waiting for
the dust to settle on the most recent changes to PEP 426.

Regards,

Vinay Sajip



More information about the Distutils-SIG mailing list