News for hackers. Stuff that matters.
Re:PyCon 2015: Are we still changing the world? by woah on Monday May 11, 2015 @11:35AM (#9525500)
Python is a very nice language, but a big stumbling block is the poor package management. Contrasting this with node, which makes it as easy as possible to build modular software, python's packages are a big step backwards.
Re:PyCon 2015: Are we still changing the world? by mpdehaan2 on Monday May 11, 2015 @11:38AM (#9525512)
I'm not following this. Can you give examples of features in node?

Given, the quality of things in any community repo, and the namespacing, are often terrible, but this hasn't ever kept me from using good things out of it.

I'm also not sure how it can be a step backwards, as Python is quite a bit older :)

One thing I don't like about npm is folks are starting to store non-npm things in it, which I think may because of the weird situation of npm getting funding. I don't understand that just as much as I wouldn't understand PyPi or CPAN getting funding :)

Re:PyCon 2015: Are we still changing the world? by carrja99 on Monday May 11, 2015 @11:42AM (#9525541)
The key difference between pypi and npm is that if you pull a package down and it depends on something==1.0.2 and you depend directly on the incompatible something==0.8.9 both version live together in peace because only request will use 1.0.2. With pypi (and most other dependency management systems) you'll have to make a choice on which one you want to use and in this example you'll have to choose an older version of the library depending on something==1.0.2.
Re:PyCon 2015: Are we still changing the world? by abstractbeliefs on Monday May 11, 2015 @12:13PM (#9525787)
This has been largely solved with virtualenvs where those collisions happen on the system level, but I concede it's harder when the mutually incompatible requirements are in the same project.
Re:PyCon 2015: Are we still changing the world? by tedmiston on Monday May 11, 2015 @12:39PM (#9525995)
If I'm understanding the question correctly, I agree virtualenv + virtualenvwrapper solves it mostly. For what I consider a decent treatment of some of the shortcomings in pip vs. npm, I found this post helpful:

"Things I wish Pip learned from Npm" https://medium.com/@alonisser/things-i-wish-pip-learned-from...

Re:PyCon 2015: Are we still changing the world? by tedmiston on Monday May 11, 2015 @11:48AM (#9525587)
I've done just a small amount of work with node, but as a professional Python dev, I very much agree that package management is one of (if not the most) significant downsides of our ecosystem.

One feature I'd love to have personally is a clear way to manage only direct dependencies, but have reproducible builds in pip. @nvie has done some great work in this space [0][1], but not all of us have caught up yet. :)

0: http://nvie.com/posts/pin-your-packages/

1: http://nvie.com/posts/better-package-management/

Re:PyCon 2015: Are we still changing the world? by Lofkin on Monday May 11, 2015 @12:18PM (#9525843)
anaconda solves this