Hack to deal with a missing python3 alias on Windows
Reason this release was yanked:
setup.py bits aren't running
Project description
python3
Hack to handle a missing alias/symlink, for example when you're on windows or don't want to be bothered
This exists so that the following Makefile command will execute correctly on windows.
PLATFORM_ARCH := $(shell python3 -c "import platform; print(platform.machine())")
Installation
To get python3 everywhere and python3 means just some random isolated python3
pipx install python3-alias
To get a known version of python3, install into the system or venv.
pip install python3-alias
Motivation
Yes, I know, one solution is for you to personally purchase a Macbook for everyone in the world. Please include me when you do.
Things that don't work
In git bash, this isn't picked up.
alias python3=python
Link python3 to python in bash
ln -s /c/Users/USER/AppData/Local/Programs/Python/Python312/python /usr/bin/python3
# ln: failed to create symbolic link '/usr/bin/python3': Permission denied
Also adding python3=python
to this file didn't work.
nano "/C/Program Files/Git/etc/profile.d/aliases.sh"
Also, a shell file named python3
didn't work.
Installing python from the Microsoft Store might work, I didn't try. I'd rather install from python.org.
Limitations
At the moment, there are no features to configure the python3 alias to use a python executable other than the system, pipx or venv depending on where you installed it.
This alias isn't to replace pyenv, asdf or the like.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file python3_alias-1.0.0.tar.gz
.
File metadata
- Download URL: python3_alias-1.0.0.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bec9f63e3e24dcd30781ff2cc37cc0f832355c6ddffe968a0e53250aea4e18d0 |
|
MD5 | eb5a4604204f97f5514047545a0ced67 |
|
BLAKE2b-256 | 67bfaae643e704b277697d949d0fc181d34e014632e44b8e11603890eeeca6b9 |
File details
Details for the file python3_alias-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: python3_alias-1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aad1bd006436195241858002cca6b4ec1942d4bbd1cd4eaa6a269c1d738784ea |
|
MD5 | 247e4c3a75a415d6474f24b4f13ecd3f |
|
BLAKE2b-256 | fb2bd5b473dc7e020f0cf2f7f038f01cbca1db3c22bcd6facdc578c8d5ac3032 |