python-compile


Namepython-compile JSON
Version 1.0.14 PyPI version JSON
download
home_pagehttps://github.com/zackees/python-compile
SummaryCompiles Python to an exe
upload_time2024-03-25 09:07:45
maintainerZachary Vorhies
docs_urlNone
authorNone
requires_python>=3.7
licenseBSD 3-Clause License
keywords template-python-cmd
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # python-compile

Compile python apps to linux executables using docker.

[![Linting](../../actions/workflows/lint.yml/badge.svg)](../../actions/workflows/lint.yml)
[![MacOS_Tests](../../actions/workflows/push_macos.yml/badge.svg)](../../actions/workflows/push_macos.yml)
[![Ubuntu_Tests](../../actions/workflows/push_ubuntu.yml/badge.svg)](../../actions/workflows/push_ubuntu.yml)
[![Win_Tests](../../actions/workflows/push_win.yml/badge.svg)](../../actions/workflows/push_win.yml)

![image](https://github.com/zackees/python-compile/assets/6856673/108c9af7-2a6f-4388-a2f3-d05aa826990e)




This project will use docker to compile your one file python app into a binary that's runnable on many
linux systems. This is the easiest way to build an app and may work directly out of the box for many setups.

Work in progress remains for building Windows/MacOS apps via the docker system.

*Example*

```bash
python-compile --os debian --input demo_http_server.py --requirements requirements.txt
```

[demo_http_server](https://github.com/zackees/python-compile/blob/main/src/python_compile/assets/demo_http_server.py)

# Notes

Right now we use the nuitka build. If you want custom build options then feel free to create a PR.

# Windows

This environment requires you to use `git-bash`.

# Linting

Run `./lint.sh` to find linting errors using `pylint`, `flake8` and `mypy`.

# Links

  * Cross compiler toolchain images in linux:
    * https://github.com/dockcross/dockcross
  * MacOS images
    * https://hub.docker.com/r/sickcodes/docker-osx

# Releases
  * 1.0.14: Bug fix
  * 1.0.13: Bug fix
  * 1.0.12: Bug fix
  * 1.0.11: Os path cleanup
  * 1.0.9: Better support for `ubuntu`
  * 1.0.8: Enables experimental `ubuntu` docker image support.
  * 1.0.7: Implement wheel support for the docker images.
  * 1.0.6: Better support for package isolation for native builds.
  * 1.0.5: You may now omit the `--os` parameter and compile against the current system.
  * 1.0.4: Fix
  * 1.0.3: Native windows compile is available if the host is also windows.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/zackees/python-compile",
    "name": "python-compile",
    "maintainer": "Zachary Vorhies",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": null,
    "keywords": "template-python-cmd",
    "author": null,
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/f0/f6/f4069f4899f56cfc0f877378fd95c805524fe6dc8f6334630ab1a60ff96c/python-compile-1.0.14.tar.gz",
    "platform": null,
    "description": "# python-compile\r\n\r\nCompile python apps to linux executables using docker.\r\n\r\n[![Linting](../../actions/workflows/lint.yml/badge.svg)](../../actions/workflows/lint.yml)\r\n[![MacOS_Tests](../../actions/workflows/push_macos.yml/badge.svg)](../../actions/workflows/push_macos.yml)\r\n[![Ubuntu_Tests](../../actions/workflows/push_ubuntu.yml/badge.svg)](../../actions/workflows/push_ubuntu.yml)\r\n[![Win_Tests](../../actions/workflows/push_win.yml/badge.svg)](../../actions/workflows/push_win.yml)\r\n\r\n![image](https://github.com/zackees/python-compile/assets/6856673/108c9af7-2a6f-4388-a2f3-d05aa826990e)\r\n\r\n\r\n\r\n\r\nThis project will use docker to compile your one file python app into a binary that's runnable on many\r\nlinux systems. This is the easiest way to build an app and may work directly out of the box for many setups.\r\n\r\nWork in progress remains for building Windows/MacOS apps via the docker system.\r\n\r\n*Example*\r\n\r\n```bash\r\npython-compile --os debian --input demo_http_server.py --requirements requirements.txt\r\n```\r\n\r\n[demo_http_server](https://github.com/zackees/python-compile/blob/main/src/python_compile/assets/demo_http_server.py)\r\n\r\n# Notes\r\n\r\nRight now we use the nuitka build. If you want custom build options then feel free to create a PR.\r\n\r\n# Windows\r\n\r\nThis environment requires you to use `git-bash`.\r\n\r\n# Linting\r\n\r\nRun `./lint.sh` to find linting errors using `pylint`, `flake8` and `mypy`.\r\n\r\n# Links\r\n\r\n  * Cross compiler toolchain images in linux:\r\n    * https://github.com/dockcross/dockcross\r\n  * MacOS images\r\n    * https://hub.docker.com/r/sickcodes/docker-osx\r\n\r\n# Releases\r\n  * 1.0.14: Bug fix\r\n  * 1.0.13: Bug fix\r\n  * 1.0.12: Bug fix\r\n  * 1.0.11: Os path cleanup\r\n  * 1.0.9: Better support for `ubuntu`\r\n  * 1.0.8: Enables experimental `ubuntu` docker image support.\r\n  * 1.0.7: Implement wheel support for the docker images.\r\n  * 1.0.6: Better support for package isolation for native builds.\r\n  * 1.0.5: You may now omit the `--os` parameter and compile against the current system.\r\n  * 1.0.4: Fix\r\n  * 1.0.3: Native windows compile is available if the host is also windows.\r\n",
    "bugtrack_url": null,
    "license": "BSD 3-Clause License",
    "summary": "Compiles Python to an exe",
    "version": "1.0.14",
    "project_urls": {
        "Homepage": "https://github.com/zackees/python-compile"
    },
    "split_keywords": [
        "template-python-cmd"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f6c2cb0f936e5867f9fe0e68a7602473402733f9efe0b81139feaf20f593af54",
                "md5": "df6f1f021a3b3b5b62e2d56f1b14143a",
                "sha256": "76e04f37a3039d895133ca5ec24c3a6aa5b0fc9ab0f0502f792142dce687bfbb"
            },
            "downloads": -1,
            "filename": "python_compile-1.0.14-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "df6f1f021a3b3b5b62e2d56f1b14143a",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": ">=3.7",
            "size": 10419,
            "upload_time": "2024-03-25T09:07:44",
            "upload_time_iso_8601": "2024-03-25T09:07:44.056759Z",
            "url": "https://files.pythonhosted.org/packages/f6/c2/cb0f936e5867f9fe0e68a7602473402733f9efe0b81139feaf20f593af54/python_compile-1.0.14-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f0f6f4069f4899f56cfc0f877378fd95c805524fe6dc8f6334630ab1a60ff96c",
                "md5": "a4713b60e016068cd04514c84f0d8819",
                "sha256": "f52388e0466957a182fc26a2352efd1f4522a749481080051c1b67a9602081fd"
            },
            "downloads": -1,
            "filename": "python-compile-1.0.14.tar.gz",
            "has_sig": false,
            "md5_digest": "a4713b60e016068cd04514c84f0d8819",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 28532,
            "upload_time": "2024-03-25T09:07:45",
            "upload_time_iso_8601": "2024-03-25T09:07:45.187467Z",
            "url": "https://files.pythonhosted.org/packages/f0/f6/f4069f4899f56cfc0f877378fd95c805524fe6dc8f6334630ab1a60ff96c/python-compile-1.0.14.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-25 09:07:45",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "zackees",
    "github_project": "python-compile",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "tox": true,
    "lcname": "python-compile"
}
        
Elapsed time: 0.45369s