virtualenv and make DESTDIR=

Barry barry at barrys-emacs.org
Sun Mar 6 17:04:43 EST 2022



> On 6 Mar 2022, at 16:53, Peter J. Holzer <hjp-python at hjp.at> wrote:
> 
> On 2022-03-05 17:59:48 +0100, Marco Sulla 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?
> 
> That shouldn't be necessary. Any packages needed by that new package
> should be dependencies of that package, so they must also already exist
> as RPMs. The rpm build process will automatically install them if they
> aren't already.
> 
> (That may not be true for build dependencies, though.)

In the spec file use BuildRequires: to pull in an rpm package that is needed to do the build.
For example python3-setuptools.

Barry

> 
>        hp
> 
> -- 
>   _  | Peter J. Holzer    | Story must make more sense than reality.
> |_|_) |                    |
> | |   | hjp at hjp.at         |    -- Charles Stross, "Creative writing
> __/   | http://www.hjp.at/ |       challenge!"
> -- 
> https://mail.python.org/mailman/listinfo/python-list



More information about the Python-list mailing list