[Distutils] Deprecating little used file types/extensions on PyPI?
dholth at gmail.com
Tue Aug 16 12:48:56 EDT 2016
On Tue, Aug 16, 2016 at 12:43 PM Alex Grönholm <alex.gronholm at nextday.fi>
> 16.08.2016, 19:37, Daniel Holth kirjoitti:
> On Tue, Aug 16, 2016 at 12:06 PM Donald Stufft <donald at stufft.io> wrote:
>> On Aug 16, 2016, at 8:50 AM, Daniel Holth <dholth at gmail.com> wrote:
>> Wheel should be updated to support the egg use case before egg is
>> removed. IIUC this would mostly mean officially supporting 'unzipped wheel'
>> as a thing you can add to PYTHONPATH, possibly with some additional
>> restrictions for the specific wheel. We could go a little further and
>> officially support zipped wheels "if zip safe". We could implement
>> wheel2egg to complement egg2wheel?
>> I don’t think Wheel should officially supported unzip wheels as a thing
>> you can add to PYTHONPATH nor do I think we should officially support
>> zipped wheels being added to PYTHONPATH. Neither of those things are going
>> to work universally and setuptools has gross heuristics to try and figure
>> out when they will and won’t work (which regularly break or report
>> inaccurately). Wheel is improved by remaining focused on being a format for
>> distributing and installed via an installer, not one that tries to do all
>> of the things like Egg did.
> So this is how I envision "installing a wheel to its own directory".
> 1. Unzip the wheel into its own directory.
> 2. If there are any nested *.data/purelib, platlib, make sure they are
> also unzipped into the root of the unzipped wheel instead of their archive
> 3. If there are scripts and you want them, install those too.
> If 2 and 3 don't apply to you, you are done almost before you've started.
> What's missing?
> How does one go about installing console_scripts this way?
No difference. Read entry_points.txt and generate script wrappers for all
of the listed console_scripts. In buildout's case it adds all of the
dependencies to sys.path in the generated console_script wrapper.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Distutils-SIG