-
Notifications
You must be signed in to change notification settings - Fork 106
Description
Hey there,
I am currently trying to build numpy as a .deb. Here I proceed as follows:
- download the files with
pypi-download numpy
. - build the .deb with
py2dsc numpy-1.24.3.tar.gz
.
The second step fails and I get the following output:
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
running the following command in directory: deb_dist/tmp_py2dsc/numpy-1.24.3
/usr/bin/python3 setup.py --command-packages stdeb.command sdist_dsc --dist-dir=/development/build-numpy/build/deb_dist --use-premade-distfile=/development/build-numpy/build/numpy-1.24.3.tar.gz
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Running from numpy source directory.
/development/build-numpy/build/deb_dist/tmp_py2dsc/numpy-1.24.3/setup.py:67: DeprecationWarning:
numpy.distutils
is deprecated since NumPy 1.23.0, as a result
of the deprecation of distutils
itself. It will be removed for
Python >= 3.12. For older Python versions it will remain present.
It is recommended to use setuptools < 60.0
for those Python versions.
For more details, see:
https://numpy.org/devdocs/reference/distutils_status_migration.html
import numpy.distutils.command.sdist
Traceback (most recent call last):
File "/development/build-numpy/build/deb_dist/tmp_py2dsc/numpy-1.24.3/setup.py", line 479, in
setup_package()
File "/development/build-numpy/build/deb_dist/tmp_py2dsc/numpy-1.24.3/setup.py", line 449, in setup_package
run_build = parse_setuppy_commands()
File "/development/build-numpy/build/deb_dist/tmp_py2dsc/numpy-1.24.3/setup.py", line 382, in parse_setuppy_commands
raise RuntimeError("Unrecognized setuptools command: {}".format(args))
RuntimeError: Unrecognized setuptools command: ['--command-packages', 'stdeb.command', 'sdist_dsc', '--dist-dir=/development/build-numpy/build/deb_dist', '--use-premade-distfile=/development/build-numpy/build/numpy-1.24.3.tar.gz']
ERROR running: /usr/bin/python3 setup.py --command-packages stdeb.command sdist_dsc --dist-dir=/development/build-numpy/build/deb_dist --use-premade-distfile=/development/build-numpy/build/numpy-1.24.3.tar.gz
ERROR in deb_dist/tmp_py2dsc/numpy-1.24.3
I used stdeb version 0.10.0 and installed it via pip. If I follow the same steps to build for example stdeb
or scipy
I don't get this error, but the packages are built as requested.
Can someone explain what I am missing here?