python3-alias


Namepython3-alias JSON
Version 1.0.3 PyPI version JSON
download
home_pagehttps://github.com/matthewdeanmartin/python3
SummaryHack to deal with a missing python3 alias on Windows
upload_time2024-10-16 02:53:42
maintainerNone
docs_urlNone
authorMatthew Martin
requires_python>=3.8
licenseMIT
keywords python3 alias
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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.
```Makefile
PLATFORM_ARCH := $(shell python3 -c "import platform; print(platform.machine())")
```

## Installation

To get python3 everywhere and python3 means just some random isolated python3
```bash
pipx install python3-alias
```

To get a known version of python3, install into the system or venv.
```bash
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.
```bash
alias python3=python
```

Link python3 to python in bash
```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. 
```bash
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.


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/matthewdeanmartin/python3",
    "name": "python3-alias",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "python3, alias",
    "author": "Matthew Martin",
    "author_email": "matthewdeanmartin@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/4e/37/85ec04c1f7411fe33919320517e2bd14e0ef5009d4955d1af2aee76de422/python3_alias-1.0.3.tar.gz",
    "platform": null,
    "description": "# 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\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Hack to deal with a missing python3 alias on Windows",
    "version": "1.0.3",
    "project_urls": {
        "Bug Tracker": "https://github.com/matthewdeanmartin/python3/issues",
        "Change Log": "https://github.com/matthewdeanmartin/python3/blob/main/CHANGELOG.md",
        "Documentation": "https://github.com/matthewdeanmartin/python3",
        "Homepage": "https://github.com/matthewdeanmartin/python3",
        "Repository": "https://github.com/matthewdeanmartin/python3"
    },
    "split_keywords": [
        "python3",
        " alias"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "424691604f4854378eb7323d563f445546b1612021cdd76f4c7a1ccbfc22e0b6",
                "md5": "adba7a81cf0128d73974a7d5385e673d",
                "sha256": "87e472ca94ee832d4a4453c62e18f04c08fcaf30461f1409ad72065fec11beb9"
            },
            "downloads": -1,
            "filename": "python3_alias-1.0.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "adba7a81cf0128d73974a7d5385e673d",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 4236,
            "upload_time": "2024-10-16T02:53:41",
            "upload_time_iso_8601": "2024-10-16T02:53:41.400990Z",
            "url": "https://files.pythonhosted.org/packages/42/46/91604f4854378eb7323d563f445546b1612021cdd76f4c7a1ccbfc22e0b6/python3_alias-1.0.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "4e3785ec04c1f7411fe33919320517e2bd14e0ef5009d4955d1af2aee76de422",
                "md5": "e45ebae6666ceb985763a9cb50ac6053",
                "sha256": "54d4144f57d3f997801748c2cfced988e2a9429571b77e7f73c90390acb0eeab"
            },
            "downloads": -1,
            "filename": "python3_alias-1.0.3.tar.gz",
            "has_sig": false,
            "md5_digest": "e45ebae6666ceb985763a9cb50ac6053",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 5319,
            "upload_time": "2024-10-16T02:53:42",
            "upload_time_iso_8601": "2024-10-16T02:53:42.628072Z",
            "url": "https://files.pythonhosted.org/packages/4e/37/85ec04c1f7411fe33919320517e2bd14e0ef5009d4955d1af2aee76de422/python3_alias-1.0.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-16 02:53:42",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "matthewdeanmartin",
    "github_project": "python3",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "python3-alias"
}
        
Elapsed time: 0.34177s