News for hackers. Stuff that matters.
Re:Why is a Java guy so excited about Node.js and JavaScript? by sametmax on Monday August 27, 2018 @09:09AM (#17851231)
Dependencies in python has evolved a lot in the last 2 years. You can use a simple setup.cfg to make them, and you can use a wheel like a jar if you want.
Re:Why is a Java guy so excited about Node.js and JavaScript? by sonnyblarney on Monday August 27, 2018 @02:46PM (#17853379)
Ok, so there's some new mechanisms?

That's not so much the issue - as Python package/dependency problems are not so much a problem of 'how it works' - it's an issue because nobody is on the same page. It's byzantine.

If python dependencies boiled down to 'point to a directory' well then fine, everything would work that way and we'd build tools around it, docs would be clear etc. etc..

But as someone who uses Python seldom and loves the syntax, I generally stay away from it mostly for that reason.

And lack of typing which is obviously another discussion.

Re:Why is a Java guy so excited about Node.js and JavaScript? by sametmax on Tuesday August 28, 2018 @07:48AM (#17858057)
Actually, "point to a directory" works. Any directory can be added usong sys.path.append() and its python content becomes importable. No needs to do anything more.
Re:Why is a Java guy so excited about Node.js and JavaScript? by passiveincomelg on Monday August 27, 2018 @10:17AM (#17851599)
Unless C libraries are involved. Which is almost always the case.
Re:Why is a Java guy so excited about Node.js and JavaScript? by sametmax on Monday August 27, 2018 @10:55AM (#17851845)
First, no it's not. I just checked. 1 out of 12 projects on my laptop have c dependancies.

Second, wheels allow installing c dep tranparently now. And the top 20 c dep have wheels for windows, mac and most linux.

Re:Why is a Java guy so excited about Node.js and JavaScript? by passiveincomelg on Monday August 27, 2018 @12:01PM (#17852248)
You are right, "almost always the case" was a baseless claim and binary wheels are better than nothing.

However, how many projects still have "psycopg2" in their setup.py (or is it requirements.txt? ;) instead of "psycopg2-binary"? I just found out that the latter exists when I checked PyPI.

Re:Why is a Java guy so excited about Node.js and JavaScript? by sametmax on Monday August 27, 2018 @12:15PM (#17852327)
I'm not pretending all is fine in the kingdom. But a lot of big Python issues (2 vs 3, encoding, deps) are a in a fantastic state compared to years ago and I think it's important that people don't stay stuck on a bad impression from past mistakes.

It's also for me a way to acknowledge the huge work the community has been putting into fixing what's been asked.