News for hackers. Stuff that matters.
Re:GitHub Package Registry Will Support Swift Packages by skohan on Tuesday June 04, 2019 @09:28AM (#20094771)
How is the dependency management situation on Python? I have dabbled in Python for a few projects, and it always felt like there was no "right way" to manage dependencies and environment.
Re:GitHub Package Registry Will Support Swift Packages by dagw on Tuesday June 04, 2019 @09:39AM (#20094873)
it always felt like there was no "right way" to manage dependencies and environment.

That has been a huge problem in the past and it's still somewhat of a problem. However now that pip and virtualenv (renamed venv) are part of the standard python install and pip has gotten a lot better when comes to cross platform installs and handling binary dependencies, hopefully we'll see some more standardization around those tools.

That being said, I use conda for managing dependencies and environment for basically all my python development work and have no complaints.

Re:GitHub Package Registry Will Support Swift Packages by woodrowbarlow on Tuesday June 04, 2019 @11:00AM (#20095653)
these days all the tooling you need is shipped with the python standard distribution.

pip: install a package system-wide

venv: create fake system paths locally in your current directory

so do everything within a venv and pin your dependency versions into requirements.txt. i've found it to be exactly as powerful as i need, works out of the box, and it's easy.

Re:GitHub Package Registry Will Support Swift Packages by yhoiseth on Tuesday June 04, 2019 @10:40AM (#20095444)
I find Pipenv very nice, but it is controversial.