2 ms·
I don't understand why dependency management is hard in python. In powershell, there's a PSModulePath which works like Path: search folders for dependencies. T
by psd1 5y ago
I don't understand why dependency management is hard in python.
In powershell, there's a PSModulePath which works like Path: search folders for dependencies. This can be modified within the session.
You import dependencies by specification, which might just be the name or may contain version constraints and/or a module guid.
Granted, powershell only got a package manager in the last decade. Not long enough to thrash out a contentious pep.
- kortex 5y agoPython is an odd duck in terms of dependencies because it gets very integrated into the system; think of it almost like "portable scripted C." There's the pure python packages, which because of how python's search and import process works, means you need a separate library root for each set of incompatible dependencies, and these must be orthogonal. Then, you have compiled extensions, which have the above issues, plus now you gotta get some binary distribution machinery involved. Then, you have FFI/so/dll/dylib type extensions, which have the above complexities, plus the linker/LD_LIBRARY_PATH involved. Then, you have the interaction of site-packages, since python is used by my OSes for scripting.