Python desperately needs a better packaging solution than pip from Python Software Foundation. Stop all new features until this - the biggest pain point for Python across all expertise levels from newbies to experienced Python programmers - is officially solved. No pipenv, no poetry, no conda, etc from third party devs who sometimes get tired of the pressure [1]. It is immense. Combine all this virtualenv stuff with…
I teach Python to some middle school kids. Pip vs Pip3 and PYTHONPATH wasted entirety of two class sessions. By the way, Python should go beyond Go. It should single binary the someone can install without root privileges. The fact that I have hundreds of Chromebooks at my school and I can’t use any of them - school IT, correctly, doesn’t want me mucking with advanced settings.
What the Heck Is Pyproject.toml?
121–130 of 199 posts
Re: What the Heck Is Pyproject.toml?
#122Python desperately needs a better packaging solution than pip from Python Software Foundation. Stop all new features until this - the biggest pain point for Python across all expertise levels from newbies to experienced Python programmers - is officially solved. No pipenv, no poetry, no conda, etc from third party devs who sometimes get tired of the pressure [1]. It is immense. Combine all this virtualenv stuff with…
This is a strong claim. Ruby could arguably make the same claim. So could Elixir.
Re: What the Heck Is Pyproject.toml?
#123Earlier quoted context omitted.
> There is no greater hell than talking them through installing a working Python environment. It’s impossible. I give a lot of Python professional trainings, and I get to do that regularly, in very diverse situations. It's indeed full of gotchas. Since it's not going to be solved quickly, meanwhile, here is what works if you need to help people setuping python: 1 - Install Python correctly The first version Python do…
That's a pretty solid guide! It's even useful for me that writes Python (non-exclusively) professionally. My company settled on pipenv, and we regret it. It's slow and buggy and has crazy behaviour. It's not bad enough that it's worth updating all projects (or rather, there's no good enough alternative) but I regret about once a week having advocated for it. Note: I think you made a mistake, you say that you can rena…
Being stuck at home, I currently give training remotely. If you know people that need trained in anything Python (beginner, advanced, scripting, architecture, web, data analysis, etc.), think about me :)
Re: What the Heck Is Pyproject.toml?
#124Earlier quoted context omitted.
Here's their justification for using it. It makes sense to me. https://www.python.org/dev/peps/pep-0518/#overview-of-file-f...
It makes sense to use toml. It makes zero sense not to bring pytoml in the stdlib before doing so. The way this was handled is a little absurd.
From the link. Makes sense I think.
Re: What the Heck Is Pyproject.toml?
#125Python desperately needs a better packaging solution than pip from Python Software Foundation. Stop all new features until this - the biggest pain point for Python across all expertise levels from newbies to experienced Python programmers - is officially solved. No pipenv, no poetry, no conda, etc from third party devs who sometimes get tired of the pressure [1]. It is immense. Combine all this virtualenv stuff with…
I can never trust pip for on-premise installations of python code. Even the npm toolchain madness is somewhat more consolidated and organized.
Re: What the Heck Is Pyproject.toml?
#126Earlier quoted context omitted.
> There is no greater hell than talking them through installing a working Python environment. It’s impossible. I give a lot of Python professional trainings, and I get to do that regularly, in very diverse situations. It's indeed full of gotchas. Since it's not going to be solved quickly, meanwhile, here is what works if you need to help people setuping python: 1 - Install Python correctly The first version Python do…
this is an awesome summary; I use python occasionally, and have run into several of the issues you flag in your post, but would probably do it all over again next time I need to put something in production. So thank you for taking the time to summarize things so thoughtfully.
Re: What the Heck Is Pyproject.toml?
#127Earlier quoted context omitted.
Poetry is a modern packaging system for Python. It's really good. I hope everyone converges on it. http://python-poetry.org/
Unfortunately, you need to: - discover it - install it properly - run it properly - make it create a venv with the proper python version - potentially import data from existing setup.py/cfg - make sure you are always in the right dir when you use it - not be on windows (poetry shell doesn't work there) - IDE integration is not great - people have to chose between this, pip, pip-tools, flit, pipenv, dephell, conda...…
Ok that's a bug, probably fixed soon. Otherwise, most of these are true of many popular packaging tools in other languages.
Re: What the Heck Is Pyproject.toml?
#128Earlier quoted context omitted.
Unfortunately, you need to: - discover it - install it properly - run it properly - make it create a venv with the proper python version - potentially import data from existing setup.py/cfg - make sure you are always in the right dir when you use it - not be on windows (poetry shell doesn't work there) - IDE integration is not great - people have to chose between this, pip, pip-tools, flit, pipenv, dephell, conda...…
> - not be on windows (poetry shell doesn't work there) Ok that's a bug, probably fixed soon. Otherwise, most of these are true of many popular packaging tools in other languages.
Re: What the Heck Is Pyproject.toml?
#129Earlier quoted context omitted.
Those are great when you need big or fast, but py is much better at the smaller, easier to write end.
Ah, so Python is for small and slow, doesn't seem to be the best in everything after all. Which brings us back to "nice scripting and introduction to programming language".
Clearly no one is going to be able to convince you otherwise, so is there much point in you continuing to read this thread?
Re: What the Heck Is Pyproject.toml?
#130Earlier quoted context omitted.
As a comment to your first paragraph, I've found pyenv combined with its virtualenv plugin to be a decently consistent experience.
I've never understood the need for pyenv-virtualenv when virtualenvwrapper exists. To add more confusion there is also pyenv-virtualenvwrapper.