{"id":23395954,"url":"https://github.com/matthewdeanmartin/python3","last_synced_at":"2025-04-08T17:19:48.738Z","repository":{"id":257827614,"uuid":"873238949","full_name":"matthewdeanmartin/python3","owner":"matthewdeanmartin","description":"Hack to handle a missing alias/symlink, for example when you're on windows or don't want to be bothered","archived":false,"fork":false,"pushed_at":"2024-10-16T02:51:32.000Z","size":51,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-15T04:03:42.009Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/matthewdeanmartin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-15T20:38:44.000Z","updated_at":"2024-10-16T02:51:35.000Z","dependencies_parsed_at":"2024-10-17T09:55:01.724Z","dependency_job_id":null,"html_url":"https://github.com/matthewdeanmartin/python3","commit_stats":null,"previous_names":["matthewdeanmartin/python3"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matthewdeanmartin%2Fpython3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matthewdeanmartin%2Fpython3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matthewdeanmartin%2Fpython3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matthewdeanmartin%2Fpython3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matthewdeanmartin","download_url":"https://codeload.github.com/matthewdeanmartin/python3/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247888568,"owners_count":21013002,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-22T07:19:45.338Z","updated_at":"2025-04-08T17:19:48.717Z","avatar_url":"https://github.com/matthewdeanmartin.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# python3\nHack to handle a missing alias/symlink, for example when you're on windows or don't want to be bothered\n\nThis exists so that the following Makefile command will execute correctly on windows.\n```Makefile\nPLATFORM_ARCH := $(shell python3 -c \"import platform; print(platform.machine())\")\n```\n\n## Installation\n\nTo get python3 everywhere and python3 means just some random isolated python3\n```bash\npipx install python3-alias\n```\n\nTo get a known version of python3, install into the system or venv.\n```bash\npip install python3-alias\n```\n\n## Motivation\n\nYes, I know, one solution is for *you* to personally purchase a Macbook for everyone in the world. Please\ninclude me when you do.\n\n### Things that don't work\n\nIn git bash, this isn't picked up.\n```bash\nalias python3=python\n```\n\nLink python3 to python in bash\n```bash\nln -s /c/Users/USER/AppData/Local/Programs/Python/Python312/python /usr/bin/python3\n# ln: failed to create symbolic link '/usr/bin/python3': Permission denied\n```\n\nAlso adding `python3=python` to this file didn't work. \n```bash\nnano \"/C/Program Files/Git/etc/profile.d/aliases.sh\"\n```\n\nAlso, a shell file named `python3` didn't work.\n\nInstalling python from the Microsoft Store might work, I didn't try. I'd rather install from python.org.\n\n## Limitations\n\nAt the moment, there are no features to configure the python3 alias to use a python executable other than\nthe system, pipx or venv depending on where you installed it.\n\nThis alias isn't to replace pyenv, asdf or the like.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatthewdeanmartin%2Fpython3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatthewdeanmartin%2Fpython3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatthewdeanmartin%2Fpython3/lists"}