Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Error when trying to build numpy #193

Open
JustM3dium opened this issue May 9, 2023 · 0 comments
Open

Error when trying to build numpy #193

JustM3dium opened this issue May 9, 2023 · 0 comments

Comments

@JustM3dium
Copy link

Hey there,

I am currently trying to build numpy as a .deb. Here I proceed as follows:

  1. download the files with pypi-download numpy.
  2. 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?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant