News for hackers. Stuff that matters.
Re:What the Heck Is Pyproject.toml? by earthboundkid on Wednesday April 01, 2020 @10:29PM (#22755726)
Yes, Python’s packaging is partly bad because it’s based on C extensions, which are intrinsically bad, but it’s also just plain bad compared to its peers, like Ruby and NPM.
Re:What the Heck Is Pyproject.toml? by nicoburns on Thursday April 02, 2020 @05:32AM (#22757436)
NPM also has support for C extensions, and they mostly work reliably (the only problems I've had are forgetting to `npm rebuild` when switching between node versions, or when switching between native mac builds and linux-in-docker builds.
Re:What the Heck Is Pyproject.toml? by int_19h on Wednesday April 01, 2020 @11:29PM (#22755971)
What exactly is "intrinsically bad" about extensions written in C?
Re:What the Heck Is Pyproject.toml? by harikb on Thursday April 02, 2020 @12:39AM (#22756252)
In my personal experience, extensions written in C don't necessarily compile at first attempt because the dependency management there is even worse. May be it fails with a missing openssl or readline library and I have to go find whatever OS specific thingy I need to do to recover.
Re:What the Heck Is Pyproject.toml? by earthboundkid on Thursday April 02, 2020 @09:10AM (#22758497)
C/C++ have no equivalent of npm/bundler/pip. Instead there are incompatible flavors of Makefiles for incompatible C compilers. It's a hard problem space to work in.
Re:What the Heck Is Pyproject.toml? by jshen on Thursday April 02, 2020 @02:09AM (#22756640)
A lot of ruby is based on C extensions too.