Open hmaarrfk opened 4 years ago
@conda-forge/core any thoughts on this?
We were able to move a pip3 package through, but I know this one may be a little more contentious.
How do you propose we build a python3.exe? copy python.exe
to python3.exe
? That's a waste of space.
Actually, I hadn't thought of that, and that sounds like a great easy idea!!!
100kB copy seems well worth it to me.
Any movement on this? There are conda packages (for me robostack/humble) that have scripts with python3 shebangs in the build chain which isn't just about changing user behaviour. Now I am manually adding a symlink, but that doesn't make for very portable environments
CMake Error at D:/.../share/cmake-3.27/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find Python3 (missing: Python3_NumPy_INCLUDE_DIRS NumPy)
@isuruf @jjhelmus @xhochy I have made PRs to make a python3 alias via copy. Can they please be merged? The file that is copied is <100kb which I think is ok to get rid of this problem
I still don't see why this is needed.
For original source writers,
It is very difficult to write "cross os" installation and running instructions.
python3
.python
The list kinda goes on.
This really helps first time started get going with python
So, you want to complicate the instructions with the following?
I would rather say:
python3
.In 2020, when I opened the issue, python2 was a real thing. so users accidentally having python2 was a real problem.
I don't think there is a good "solution" to these problems, but I think that adding a python3
command is a good step forward. At the very least, it would add pressure on upstream cpython
to add a python3
command on their default windows installer.
The fact that this behaviour is different between linux and windows to me seems like enough of an argument to say the python3 alias should be included.
Further there are packaged tools/scripts that use a python3 shebang, these simply do not work with the base python package (or worse call the global install)
Why I pinged again today is I had to python myenv/Library/tools/the_tool_I_want/script.py
because the script used a python3 shebang. This defies the whole point of having an environment
At the very least, it would add pressure on upstream cpython to add a python3 command on their default windows installer.
In Windows they use the pylauncher (what causes more headaches with conda environments) which emulates the python3
aliases, but only for global python installs
Can you both please comment on https://github.com/python/cpython/issues/99185 first?
ok thank you for the constructive comment.
I somewhat remember clashes between name.dll
and name.exe
.
I'm going to try to test the new entry points before suggesting. I've been hit by similar bugs in the past in other packages.
Issue:
On ubuntu, there is an entry point for both
python3
andpython3
.On windows,
python3
doesn't exist.Not sure about osx.
Could windows be added an entry point for the command
python3
so that we can reach a broader audiance with "fool proof" instructions.Ubuntu
Windows: (I deleted things in my roaming path between the two commands)
Environment (
conda list
):Details about
conda
and system (conda info
):