Path: csiph.com!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod From: PICCA Frederic-Emmanuel Newsgroups: linux.debian.maint.python Subject: Re: build package xrayutilities - wheel and pip with setuptools Date: Wed, 02 Nov 2022 10:10:02 +0100 Message-ID: References: X-Original-To: PICCA Frederic-Emmanuel X-Mailbox-Line: From debian-python-request@lists.debian.org Wed Nov 2 09:09:13 2022 Old-Return-Path: X-Amavis-Spam-Status: No, score=0.4 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DIGITS_LETTERS=1, FOURLA=0.1, RCVD_IN_DNSWL_LOW=-0.7, THREADTOPIC=2] autolearn=no autolearn_force=no X-Policyd-Weight: using cached result; rate:hard: -5.5 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Mailer: Zimbra 8.8.15_GA_4372 (zclient/8.8.15_GA_4372) Thread-Topic: build package xrayutilities - wheel and pip with setuptools Thread-Index: 5NyPuaTPG+e1I8tJoK0bssonXX4C+kZIwk1B X-Virus-Status: Clean X-Renater-Ptge-Spamstate: clean X-Renater-Ptge-Spamscore: 15 X-Renater-Ptge-Spamcause: gggruggvucftvghtrhhoucdtuddrgedvgedrudeigdduvdegucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecutffgpfetvffgtfenuceurghilhhouhhtmecufedttdenucgoteeftdduqddtudculdduhedmnecujfgurhepfffhvfevkfgjfhfugggtgffothesthhqtgdtredtjeenucfhrhhomheprffkveevtecuhfhrvgguvghrihgtqdfgmhhmrghnuhgvlhcuoehfrhgvuggvrhhitgdqvghmmhgrnhhuvghlrdhpihgttggrsehshihntghhrhhothhrohhnqdhsohhlvghilhdrfhhrqeenucggtffrrghtthgvrhhnpeegjeeludfghfejuedvleeuieduheffieegteetleejtdevjeduffevjeeuueeifeenucfkphepuddtrddvheegrddvgedtrddugeehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepuddtrddvheegrddvgedtrddugeehpdhhvghlohepiihsthhorhgvqdgsfedqtdduvddrphgrrhhtrghgvgdrrhgvnhgrthgvrhdrfhhrpdhmrghilhhfrhhomheprffkveevtecuhfhrvgguvghrihgtqdfgmhhmrghnuhgvlhcuoehfrhgvuggvrhhitgdqvghmmhgrnhhuvghlrdhpihgttggrsehshihntghhrhhothhrohhnqdhsohhlvghilhdrfhhrqedpnhgspghrtghpthhtohepfedprhgtphhtthhopehfrhgvuggvrhhitgdqvghmmhgrnhhuvghlrdhpihgttggrsehshihntghhrhhothhrohhnqdhsohhlvghilhdrfhhrpdhrtghpthhtohepuggv sghirghnsehkihhtthgvrhhmrghnrdgtohhmpdhrtghpthhtohepuggvsghirghnqdhphihthhhonheslhhishhtshdruggvsghirghnrdhorhhg X-Mailing-List: archive/latest/20445 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/772598590.21661970.1667379158464.JavaMail.zimbra@synchrotron-soleil.fr Approved: robomod@news.nic.it Lines: 195 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Cc: Scott Kitterman , debian-python@lists.debian.org X-Original-Date: Wed, 2 Nov 2022 09:52:38 +0100 (CET) X-Original-Message-ID: <772598590.21661970.1667379158464.JavaMail.zimbra@synchrotron-soleil.fr> X-Original-References: <752405ea3d71e3569b69a4ae7244f037@debian.org> <9368919.nTR9Y7UNlF@zini-1880> <713767592.21470561.1667331107029.JavaMail.zimbra@synchrotron-soleil.fr> <5278262.oUhvO5Styz@zini-1880> <1486347224.21616139.1667376225009.JavaMail.zimbra@synchrotron-soleil.fr> Xref: csiph.com linux.debian.maint.python:14593 The upstream was right :), their build system is completly broken with setu= ptools > 60 I need to fix this. thanks for your help Fred Traceback (most recent call last): File "/<>/setup.py", line 1137, in setup_package() File "/<>/setup.py", line 1133, in setup_package setup(**setup_kwargs) File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 87, in= setup return distutils.core.setup(**attrs) File "/usr/lib/python3/dist-packages/setuptools/_distutils/core.py", line= 172, in setup ok =3D dist.parse_command_line() File "/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py", line= 474, in parse_command_line args =3D self._parse_command_opts(parser, args) File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 1107, in _= parse_command_opts nargs =3D _Distribution._parse_command_opts(self, parser, args) File "/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py", line= 540, in _parse_command_opts raise DistutilsClassError( distutils.errors.DistutilsClassError: command class must subclass Command E: pybuild pybuild:379: clean: plugin distutils failed with: exit code=3D1:= python3.10 setup.py clean=20 dh_auto_clean: error: pybuild --clean -i python{version} -p 3.10 returned e= xit code 13 make: *** [debian/rules:16: clean] Error 25 dpkg-buildpackage: error: fakeroot debian/rules clean subprocess returned e= xit status 2 ----- Mail d=E2=80=99origine ----- De: PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.= fr> =C3=80: Scott Kitterman <debian@kitterman.com> Cc: debian-python@lists.debian.org Envoy=C3=A9: Wed, 02 Nov 2022 09:03:45 +0100 (CET) Objet: Re: build package xrayutilities - wheel and pip with setuptools Ok, I understand better what is going on. in pyproject.toml there is these lines. [build-system] requires =3D [ "wheel", "setuptools<60.0.0", "oldest-supported-numpy", "scipy", "sphinx", "nbsphinx", "silx>=3D0.10", "Cython>=3D0.25" ] indeed the setuptools < 60, can not be fullfill, So I think that this is= why it try to use pip in order to install the required version of setuptoo= ls. the strack trace seems to config this. dh clean --buildsystem=3Dpybuild dh_auto_clean -O--buildsystem=3Dpybuild =09install -d /<<BUILDDIR>>/pyfai-0.21.3\+dfsg1/debian/.debhelp= er/generated/_source/home =09pybuild --clean -i python{version} -p 3.10 I: pybuild base:240: python3.10 setup.py clean=20 /<<PKGBUILDDIR>>/setup.py:43: DeprecationWarning: The distutils= package is deprecated and slated for removal in Python 3.12. Use setuptool= s or check PEP 632 for potential alternatives from distutils.command.clean import clean as Clean /usr/lib/python3/dist-packages/_distutils_hack/__init__.py:18: UserWarning:= Distutils was imported before Setuptools, but importing Setuptools also re= places the `distutils` module in `sys.modules`. This may lead to undesirabl= e behaviors or errors. To avoid these issues, avoid using distutils directl= y, ensure that setuptools is installed in the traditional way (e.g. not an = editable install), and/or make sure that setuptools is always imported befo= re distutils. warnings.warn( /usr/lib/python3/dist-packages/_distutils_hack/__init__.py:33: UserWarning:= Setuptools is replacing distutils. warnings.warn("Setuptools is replacing distutils.") INFO: Disabling color, you really want to install colorlog. INFO:pythran:Disabling color, you really want to install colorlog. INFO:pyFAI.setup:Use setuptools with cython INFO:pyFAI.setup:Use setuptools.setup /usr/lib/python3/dist-packages/setuptools/installer.py:27: SetuptoolsDeprec= ationWarning: setuptools.installer is deprecated. Requirements should be sa= tisfied by a PEP 517 installer. warnings.warn( /usr/lib/python3/dist-packages/setuptools/installer.py:60: UserWarning: Unb= uilt egg for pyFAI [unknown version] (/<<PKGBUILDDIR>>) environment =3D pkg_resources.Environment() WARNING: Retrying (Retry(total=3D4, connect=3DNone, read=3DNone, redirect= =3DNone, status=3DNone)) after connection broken by 'ProxyError('= Cannot connect to proxy.', NewConnectionError('<pip._vendor.ur= llib3.connection.HTTPSConnection object at 0x7fbbf0c8ae60>: Failed to es= tablish a new connection: [Errno 111] Connection refused'))': /si= mple/setuptools/ WARNING: Retrying (Retry(total=3D3, connect=3DNone, read=3DNone, redirect= =3DNone, status=3DNone)) after connection broken by 'ProxyError('= Cannot connect to proxy.', NewConnectionError('<pip._vendor.ur= llib3.connection.HTTPSConnection object at 0x7fbbf0c8ad40>: Failed to es= tablish a new connection: [Errno 111] Connection refused'))': /si= mple/setuptools/ WARNING: Retrying (Retry(total=3D2, connect=3DNone, read=3DNone, redirect= =3DNone, status=3DNone)) after connection broken by 'ProxyError('= Cannot connect to proxy.', NewConnectionError('<pip._vendor.ur= llib3.connection.HTTPSConnection object at 0x7fbbf0c8baf0>: Failed to es= tablish a new connection: [Errno 111] Connection refused'))': /si= mple/setuptools/ WARNING: Retrying (Retry(total=3D1, connect=3DNone, read=3DNone, redirect= =3DNone, status=3DNone)) after connection broken by 'ProxyError('= Cannot connect to proxy.', NewConnectionError('<pip._vendor.ur= llib3.connection.HTTPSConnection object at 0x7fbbf0c8bcd0>: Failed to es= tablish a new connection: [Errno 111] Connection refused'))': /si= mple/setuptools/ WARNING: Retrying (Retry(total=3D0, connect=3DNone, read=3DNone, redirect= =3DNone, status=3DNone)) after connection broken by 'ProxyError('= Cannot connect to proxy.', NewConnectionError('<pip._vendor.ur= llib3.connection.HTTPSConnection object at 0x7fbbf0c8ace0>: Failed to es= tablish a new connection: [Errno 111] Connection refused'))': /si= mple/setuptools/ ERROR: Could not find a version that satisfies the requirement setuptools&l= t;60.0.0 (from versions: none) ERROR: No matching distribution found for setuptools<60.0.0 Traceback (most recent call last): File "/usr/lib/python3/dist-packages/setuptools/installer.py", = line 82, in fetch_build_egg subprocess.check_call(cmd) File "/usr/lib/python3.10/subprocess.py", line 369, in check_ca= ll raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['/usr/bin/python3.10= 9;, '-m', 'pip', '--disable-pip-version-check'= ;, 'wheel', '--no-deps', '-w', '/tmp/tmp= mx8yh9o_', '--quiet', 'setuptools<60.0.0']'= ; returned non-zero exit status 1. The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/<<PKGBUILDDIR>>/setup.py", line 1137, in <= ;module> setup_package() File "/<<PKGBUILDDIR>>/setup.py", line 1133, in set= up_package setup(**setup_kwargs) File "/usr/lib/python3/dist-packages/setuptools/__init__.py", l= ine 86, in setup _install_setup_requires(attrs) File "/usr/lib/python3/dist-packages/setuptools/__init__.py", l= ine 80, in _install_setup_requires dist.fetch_build_eggs(dist.setup_requires) File "/usr/lib/python3/dist-packages/setuptools/dist.py", line = 875, in fetch_build_eggs resolved_dists =3D pkg_resources.working_set.resolve( File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py"= , line 789, in resolve dist =3D best[req.key] =3D env.best_match( File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py"= , line 1075, in best_match return self.obtain(req, installer) File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py"= , line 1087, in obtain return installer(requirement) File "/usr/lib/python3/dist-packages/setuptools/dist.py", line = 945, in fetch_build_egg return fetch_build_egg(self, req) File "/usr/lib/python3/dist-packages/setuptools/installer.py", = line 84, in fetch_build_egg raise DistutilsError(str(e)) from e distutils.errors.DistutilsError: Command '['/usr/bin/python3.10&#= 039;, '-m', 'pip', '--disable-pip-version-check�= 39;, 'wheel', '--no-deps', '-w', '/tmp/t= mpmx8yh9o_', '--quiet', 'setuptools<60.0.0']�= 39; returned non-zero exit status 1. E: pybuild pybuild:379: clean: plugin distutils failed with: exit code=3D1:= python3.10 setup.py clean=20 dh_auto_clean: error: pybuild --clean -i python{version} -p 3.10 returned e= xit code 13 make: *** [debian/rules:16: clean] Error 25 dpkg-buildpackage: error: fakeroot debian/rules clean subprocess returned e= xit status 2