Bug 35103

Summary: make the setuptools related part optional
Product: Sisyphus Reporter: Ivan Zakharyaschev <imz>
Component: python3-module-numpyAssignee: Антон Мидюков <antohami>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: enhancement    
Priority: P3 CC: antohami, cas, cow, evg, george, grenka, imz, kotopesutility, lav, nbr, qa_viy, rider, sem, shaba, sin, slev, toni, vitty, viy
Version: unstable   
Hardware: all   
OS: Linux   

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)