News for hackers. Stuff that matters.
Re:No Python interpreter? this simple RAT installs its own copy by krageon on Friday April 09, 2021 @10:49AM (#26751241)
> quite pesky

I've never had a bigger packaging nightmare than for Python and at this point I've worked with a substantial spread of available languages. It's simply embarrassing, especially because I used to like recommending it to people.

Re:No Python interpreter? this simple RAT installs its own copy by musingsole on Friday April 09, 2021 @12:08PM (#26752346)
The C Language thanks you for your propaganda.
Re:No Python interpreter? this simple RAT installs its own copy by pjc50 on Friday April 09, 2021 @12:56PM (#26752949)
C is the original language where you can reliably build an executable and ship it as a single file where it will run with no extra dependencies not already on the target system.
Re:No Python interpreter? this simple RAT installs its own copy by coliveira on Friday April 09, 2021 @12:23PM (#26752531)
The C language may be complex to setup an environment. But once you have the build system complete, there are mature tools to create and distribute your artifacts. That is not the case with Python.
Re:No Python interpreter? this simple RAT installs its own copy by musingsole on Friday April 09, 2021 @01:47PM (#26753642)
Python is downstream of C. Anyway you can package a C application, you can package a Python application (with some massaging).

But still, python has no mature tools for distribution? From wheels to pyinstaller to Kivy, you're just wrong.

Re:No Python interpreter? this simple RAT installs its own copy by coliveira on Friday April 09, 2021 @03:48PM (#26755223)
> Anyway you can package a C application, you can package a Python application

While true, this means that packaging Python is harder than a typical C application, and requires knowledge of the C building process. That's not what people have in mind when installing Python software.

The methods you mention are exactly the reason why it is so complicated. Everyone wants to use their own method to install Python software.

Re:No Python interpreter? this simple RAT installs its own copy by krageon on Monday April 12, 2021 @04:12AM (#26777038)
There is no python distribution system that will allow me to create a binary for MacOS or Windows without running MacOS or windows, which is only one of the many problems with the existing solutions. Yes, I'm aware of the why. It just shouldn't matter to me.

That said, there's about a million packaging systems and most of them don't offer anything materially different from the others (except in weird edge cases that aren't advertised). The space is involved and annoying. It's emphatically not at all like C, which has very strong and well-documented defaults that do the things you expect (usually).

Re:No Python interpreter? this simple RAT installs its own copy by mrybczyn on Friday April 09, 2021 @11:22AM (#26751652)
One of the main reasons I xnay any deployment of any python code to any production environments ever. It's sad and embarassing.
Re:No Python interpreter? this simple RAT installs its own copy by na85 on Friday April 09, 2021 @06:07PM (#26756791)
>xnay

Just FYI it's actually ixnay which is Pig Latin for nix, which of course means to cancel or pre-empt.

Re:No Python interpreter? this simple RAT installs its own copy by coliveira on Friday April 09, 2021 @12:22PM (#26752501)
Agreed. Python is one of the worst languages in the sense of packaging and distributing code. It is incredible how bad they manage to make the whole process. And it is not for lack of effort, they have attempted several things, but the end result is complete confusion. Every year they come with a new way to solve the packaging problem, but in the end the result is just more complexity.
Re:No Python interpreter? this simple RAT installs its own copy by KptMarchewa on Friday April 09, 2021 @01:49PM (#26753660)
It won't ever be fixed until Python C API remains in it's current form. The problem aren't pure python extension, but you can't do anything sane once part of your application is not Python.
Re:No Python interpreter? this simple RAT installs its own copy by jessaustin on Friday April 09, 2021 @04:20PM (#26755593)
I'm sure this is part of the issue, but packaging even pure python modules is harder and more confusing than necessary. I've been saying this at least since I left for the relatively greener pastures of Node nearly a decade ago. Python fans have always had plenty of advice ready to contradict my impressions, but their advice has changed a great deal over the years. That whole time, "npm publish" has just worked, when it's even necessary at all. Node just works better.