Skip to main content

Running Python on Wine

Project description

build_master docs_master build_develop docs_develop license status pypi_version pypi_versions

wenv

Synopsis

wenv is a Python package (currently in development status 4/beta). It allows to run Python on top of Wine on Linux, MacOS or BSD. It handles required plumbing related to making Python and a number of Python modules work on Wine. wenv creates isolated virtual environments which can be transparently used from a Unix command line and which seamlessly integrate into Unix Python virtual environments.

About Wine (from winehq.org): Wine (originally an acronym for "Wine Is Not an Emulator") is a compatibility layer capable of running Windows applications on several POSIX-compliant operating systems, such as Linux, MacOS and BSD. Instead of simulating internal Windows logic like a virtual machine or emulator, Wine translates Windows API calls into POSIX calls on-the-fly, eliminating the performance and memory penalties of other methods and allowing you to cleanly integrate Windows applications into your desktop.

This project is NEITHER associated NOR affiliated in any way or form with the Wine project.

Prerequisites

prerequisite version
CPython 3.x (tested with 3.{4,5,6,7,8})
Wine 4.x (tested with regular & staging) - expected to be in the user's PATH

If you are limited to an older version of Wine such as 2.x or 3.x, see wenv's installation instructions for details and workarounds.

Installation

branch status installation documentation
master (release) build_master pip install wenv docs_master
develop build_develop pip install git+https://github.com/pleiszenburg/wenv.git@develop docs_develop

After installing the package with pip, you must initialize the "Wine Python environment" by running wenv init.

Examples

Fire up a shell and try the following:

(env) user@comp:~> uname
Linux
(env) user@comp:~> python -m platform
Linux
(env) user@comp:~> wenv python -m platform
Windows

wenv pip works just like one would expect. Have a look at the output of wenv help for more commands and information. For use as a shebang, wenv python has an alias: One can write #!/usr/bin/env _wenv_python at the top of scripts.

wenv python can also be used as a Jupyter kernel, side-by-side with a Unix-version of Python. Have a look at the wenv-kernel project.

Security

Just like Wine, wenv can run malicious Windows software on Unix. Never, ever, run wenv with root / super users privileges! For details, check the section on security in the documentation.

Need help?

Feel free to post questions in the GitHub issue tracker of this project.

Bugs & issues

Make sure you have read the chapter on bugs in wenv's documentation.

Miscellaneous

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wenv-0.2.1.tar.gz (24.5 kB view details)

Uploaded Source

Built Distribution

wenv-0.2.1-py3-none-any.whl (26.9 kB view details)

Uploaded Python 3

File details

Details for the file wenv-0.2.1.tar.gz.

File metadata

  • Download URL: wenv-0.2.1.tar.gz
  • Upload date:
  • Size: 24.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for wenv-0.2.1.tar.gz
Algorithm Hash digest
SHA256 b6e1730d041a67dba0f3423030243819499841fd37f6ca80f1757dcd4a359515
MD5 f0f25d6d052890f33098ea5f0d480e87
BLAKE2b-256 9d74f6571ec5eafa2ddf0064796d8d6b6f048b535a6be63e37b66247a499ad26

See more details on using hashes here.

File details

Details for the file wenv-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: wenv-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 26.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for wenv-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 143a1b07044b3ca6daa53ef3419564ebfaa4d5941f85fe0c74c4808aa3e72a99
MD5 09248c4fb0ecf46b1f82280132630292
BLAKE2b-256 626e8ee2bec72751a3d30597af806fe73ad16aae7912567e53054c633d2f229e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page