Bug 35103 - make the setuptools related part optional
Summary: make the setuptools related part optional
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: python3-module-numpy (show other bugs)
Version: unstable
Hardware: all Linux
: P3 enhancement
Assignee: Антон Мидюков
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-29 07:27 MSK by Ivan Zakharyaschev
Modified: 2018-06-30 03:35 MSK (History)
19 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Zakharyaschev 2018-06-29 07:27:31 MSK
python3-module-numpy-1:1.13.3-alt2.1.1.x86_64

setuptools are understood to be tools/commands needed to prepare Python packages/distributions, but numpy depends on it:

[root@localhost .in]# rpm -e python3-module-setuptools
error: Failed dependencies:
	python3(setuptools.command.develop) < 0 is needed by (installed) python3-module-numpy-1:1.13.3-alt2.1.1.x86_64
	python3(setuptools.command.egg_info) < 0 is needed by (installed) python3-module-numpy-1:1.13.3-alt2.1.1.x86_64
[root@localhost .in]# 

Probably, most part of numpy can work without setuptools, it's not needed at runtime.

Could it be possible to put the setuptools-related part into a separate subpackage, so that the base system where numpy cam be used would be more flexible, i.e., without the need to have setuptools installed?

(setuptools can have other development/packaging deps not really needed at runtime; that's why they are undesirable as a dependency.)
Comment 1 Антон Мидюков 2018-06-29 09:34:51 MSK
python3(setuptools.command.develop) порождается %python3_sitelibdir/numpy/distutils/command/develop.py
python3(setuptools.command.egg_info) порождается %python3_sitelibdir/numpy/distutils/command/egg_info.py

Наверное, можно выделить субпакет python3-module-numpy-distutils с %python3_sitelibdir/numpy/distutils или же просто исключить зависимости на python3(setuptools.command.develop) и python3(setuptools.command.egg_info). В других дистрах зависимости на setuptools нет, и они как-то работают.
Comment 2 Repository Robot 2018-06-30 03:35:06 MSK
python-module-numpy-1:1.13.3-alt2.2 -> sisyphus:

Fri Jun 29 2018 Anton Midyukov <antohami@altlinux> 1:1.13.3-alt2.2
- Skip requires from python3-module numpy (Closes:35103) to:
  - python3(setuptools.command.develop)
  - python3(setuptools.command.egg_info)