Skip to content

Commit

Permalink
Update python build process
Browse files Browse the repository at this point in the history
With 3.12 the use of the python installer module is preferred so
switch to that.

Signed-off-by: William Douglas <[email protected]>
  • Loading branch information
bryteise committed Oct 16, 2023
1 parent 623d973 commit 65e386a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autospec/specfiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -1263,7 +1263,7 @@ def write_pyproject_pattern(self):

if self.config.subdir:
self._write_strip("pushd " + self.config.subdir)
self._write_strip("pip install --root=%{buildroot} --no-deps --ignore-installed dist/*.whl")
self._write_strip("python3 -m installer --destdir=%{buildroot} dist/*.whl")
if self.config.subdir:
self._write_strip("popd")
for module in self.config.pypi_overrides:
Expand All @@ -1278,7 +1278,7 @@ def write_pyproject_pattern(self):
self._write_strip('FFLAGS="$CLEAR_INTERMEDIATE_FFLAGS -m64 -march=x86-64-v3 -Wl,-z,x86-64-v3 "')
self._write_strip('FCFLAGS="$CLEAR_INTERMEDIATE_FCFLAGS -m64 -march=x86-64-v3 "')
self._write_strip('LDFLAGS="$CLEAR_INTERMEDIATE_LDFLAGS -m64 -march=x86-64-v3 "')
self._write_strip("pip install --root=%{buildroot}-v3 --no-deps --ignore-installed dist/*.whl")
self._write_strip("python3 -m installer --destdir=%{buildroot}-v3 dist/*.whl")
self._write_strip("popd")

self.write_find_lang()
Expand Down

0 comments on commit 65e386a

Please sign in to comment.