Skip to main content

Editable installations

Project description

A Python library for creating "editable wheels"

This library supports the building of wheels which, when installed, will expose packages in a local directory on sys.path in "editable mode". In other words, changes to the package source will be reflected in the package visible to Python, without needing a reinstall.

Usage

Suppose you want to build a wheel that exposes the directory dirname as an editable package when installed, equivalent to pip install -e dirname. Build your wheel as follows:

from editables import build_editable

for filename, content in build_editable(dirname):
    # Add content to your wheel, under the name filename

By default, this will expose every package in the given directory. You can control what gets exposed using the expose and hide arguments of build_editable (see the docstring for details).

This project doesn't build wheels directly. That's the responsibility of the calling code.

Project details


Download files

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

Files for editables, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size editables-0.1-py3-none-any.whl (4.2 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size editables-0.1.tar.gz (4.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page