The one thing that really pisses me off is that it's apparently impossible to package a project with all it's dependencies in Python. I'd love to use setup.py to create RPMs (it can do that out of the box), but I just can't figure out how to include the dependencies.
Because then the python developers would have to both figure out, and write code, to interface with RHEL linux and Fedora. Make sure man files get put in just the right place. Package data is correct. Desktop files, syslog, is [some system-level daemon] now systemd based and new, or an older one? What audio service are we using? What's changed between RHEL 6 and 7?
And of course, to be fair, make sure they have everything configured for Debian's liking. But also account for the small changes and version updates that Ubuntu does.
And then also ensuring we haven't forgotten about portage and pacman. Oh, and YaST.
Oh, and then also homebrew.
And quickly, for the mostly volunteer workforce that does python packaging, the task of correctly interfacing, special-casing, path-configuring, etc becomes a matrix explosion of work from hell.
We'd love to be able to do that... but it's simply not a feasible thing to achieve.
You'll notice that practically all other scripting languages have the same position.
Then just being able to create an egg or tar containing all dependencies that then could be manually installed via pip would already be more than enough.
I can't really think of any reason why this isn't already a pip feature, but I'd love to know if there are any impediments to this.
51
u/ursvp Apr 30 '18 edited Apr 30 '18
egg vs wheel
universal vs pure wheel
setuptools vs distutils
install_requires vs requirements.txt
data_files vs MANIFEST.in
package vs distribution vs binaries
pip vs conda
install -e vs install
install from PyPI vs .git vs .tar.gz
build vs environment
virtualenv vs venv vs pipenv
for each above: python2 vs python3
2to3 vs six
absolute vs relative vs circular import
oh, pip is incapable of true dependency resolution
complexity behind
__version__... in contradiction of Pythonic principle of clarity and simplicity.