Skip to main content

wenv

wenv - Running Python on Wine

build_master docs_master license status pypi_version pypi_versions chat mailing_list

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.{7,8,9,10})
Wine >= 6.x (tested with regular & staging) - expected to be in the user's PATH

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?

See section on Getting Help on wenv's documentation.

Bugs & Issues

See section on Bugs and Issues on wenv's documentation.

Miscellaneous

Metadata

Release files for wenv 0.5.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wenv 0.5.1
File Size Uploaded Provenance
wenv-0.5.1.tar.gz 73.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for wenv 0.5.1
File Interpreter ABI Platform
wenv-0.5.1-py3-none-any.whl Python 3 none any Details

Total release size: 107.1 kB

Release files / wenv-0.5.1.tar.gz

Download URL wenv-0.5.1.tar.gz
Size 73.6 kB
Tags Source
SHA-256 checksum
How to use checksums
f1960b798d6490239b3994acfed24d362f45889d5f6adb186faf08db570a6149
BLAKE2b-256 checksum
How to use checksums
db9c913ae45ca54b9d5843be07a4b6bf6dc1dafa979b93f0a3dd797715765ef0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.6

Release files / wenv-0.5.1-py3-none-any.whl

Download URL wenv-0.5.1-py3-none-any.whl
Size 33.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
70f27af56cc01bea3607fc11dda1c69b58758ecc9624a1973d9e724c6002baf4
BLAKE2b-256 checksum
How to use checksums
99c35c2b600127fd4df00711f81730acc6d3177658fff7f9cfd6a53549826d45
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.6

Security for wenv 0.5.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page