virtualenv and make DESTDIR=

Barry Scott barry at barrys-emacs.org
Sat Mar 5 12:19:40 EST 2022



> On 5 Mar 2022, at 16:59, Marco Sulla <Marco.Sulla.Python at gmail.com> wrote:
> 
> On Sat, 5 Mar 2022 at 17:36, Barry Scott <barry at barrys-emacs.org> wrote:
>> Note: you usually cannot use pip when building an RPM with mock as the network is disabled inside the build for
>> security reasons.
> 
> Can't he previously download the packages and run pip on the local packages?
> 

I guess that can work. In this case I would install with pip install --user and move the
files out of .local into an appropriate place in /opt/<app>.

At work I package a lot of packages for python and what we do is get the sources, 
review them then turn them into an RPM using the setup.py to do the file placement.

We do not use the wheels from PyPI ever. They may not match the claimed sources.
Which I have seen a few times; the version on PyPI can contain helpful patches that
are not in the sources.

Barry




More information about the Python-list mailing list