Re: Building local versions with pip wheel

Nick Coghlan <[email protected]>
Newsgroups gmane.comp.python.distutils.devel
Message-ID <CADiSq7d2Pd5sP3LLX60Sfjywqo-yrYKUmWAeAT7KSSP04saAJw@mail.gmail.com>
On Fri, 4 Jan 2019 at 16:50, Nick Coghlan <[email protected]> wrote:
>
> On Thu, 3 Jan 2019 at 11:13, Bert JW Regeer <[email protected]> wrote:
> > Is there some way to influence the egg info for the build when using pip wheel? Some thing like:
> >
> > pip wheel git+https://github.com/org/somerepo.git@ourpatchset#egg=somerepo&egg_info="-b +local<build number>"
> >
> > Or is there a better method for dealing with this scenario?
>
> The way auditwheel approaches this is as a "post-process the already
> built wheel" problem, rather than as a "modify the wheel build
> process" problem:
>
> 1. Build the original wheel archive however you'd normally do so
> 2. Unpack the original wheel archive
> 3. Make any desired changes to wheel contents and/or metadata
> 4. Repack the modified wheel (potentially with an updated RECORD file
> and modified filename)
>
> auditwheel's own utilities for doing that kind of thing are here:
> https://github.com/pypa/auditwheel/blob/master/auditwheel/wheeltools.py

It's also worth noting that distlib offers a helper API for modifying
wheel archives without needing to write your own archive unpacking and
repacking code:
https://distlib.readthedocs.io/en/latest/tutorial.html#modifying-wheels

Cheers,
Nick.

-- 
Nick Coghlan   |   [email protected]   |   Brisbane, Australia
--
Distutils-SIG mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/distutils-sig.python.org/
Message archived at https://mail.python.org/archives/list/[email protected]/message/ZRKT4NRO6A2Q63DUCI3HISJO4WE4WLFJ/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.