Like https://sourceforge.net/p/setuplib/tickets/1/ , the way these packages setup.py depends on packages not yet installed is very problematic, especially when they are for features unrelated to installation.
Adding wheels to PyPI can be an alternative way to allow installation that bypasses all these setup.py problems.
Often imports like these are only done when sys.argv
contains the relevant argument/command which needs the extra import.
py
Collecting platformids
Downloading platformids-0.1.39.tar.gz (612 kB)
ERROR: Command errored out with exit status 1:
command: /home/jayvdb/.cache/tox/project-name/py38/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-_w1skxz5/platformids/setup.py'"'"'; __file__='"'"'/tmp/pip-install-_w1skxz5/platformids/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-_w1skxz5/platformids/pip-egg-info
cwd: /tmp/pip-install-_w1skxz5/platformids/
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-_w1skxz5/platformids/setup.py", line 25, in <module>
import yapyutils.help
ModuleNotFoundError: No module named 'yapyutils'
The update with the complete support for Python2.7 and Python3.5+ including it's dependencies will be available within these days.
Last edit: Arno-Can Uestuensoez 2020-11-01