On 24/03/2020 01:13, Oleg Broytman wrote:
On Tue, Mar 24, 2020 at 11:30:38AM +1100, Steven D'Aprano
wrote: Fred is explicitly asking about the problem with having to sometimes use python and sometimes python3, and your answer is to tell him to sometimes use python and sometimes use python3?
Once for every venv created, not once for every script being run.
I'm afraid the terseness of your answer didn't make it at all clear how creating venvs would solve Fred's problems. It still isn't obvious to me!
Fred is discussing the problems he is having with distribution and deployment, not development.
IMO the issue is in not following the best practices. Distribute wheels or freezed binaries, not just drop scripts unto users.
For most circumstances, that is not a practical answer. Creating wheels or frozen binaries are subjects that most Python programmers know little about and care less about. Expecting someone to learn how to wield the packaging system just to do internal distribution is unrealistic. Also, where is it said that distributing wheels or frozen binaries is best practice? I wasn't aware of any such statement, and indeed have seen frozen binaries discouraged in the past. -- Rhodri James *-* Kynesim Ltd