> On 6 Mar 2022, at 16:53, Peter J. Holzer <hjp-pyt...@hjp.at> wrote: > > On 2022-03-05 17:59:48 +0100, Marco Sulla wrote: >>> On Sat, 5 Mar 2022 at 17:36, Barry Scott <ba...@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. > |_|_) | | > | | | h...@hjp.at | -- Charles Stross, "Creative writing > __/ | http://www.hjp.at/ | challenge!" > -- > https://mail.python.org/mailman/listinfo/python-list -- https://mail.python.org/mailman/listinfo/python-list