Skip to main content

setuptools_hg is a plugin for setuptools/distribute to enable it to find files under the Mercurial version control system.

It uses the Mercurial Python library by default and falls back to use the command line programm hg(1). That’s especially useful inside virtualenvs that don’t have access to the system wide installed Mercurial lib (e.g. when created with --no-site-packages).

Usage

Here’s an example of a setup.py that uses setuptools_hg:

from setuptools import setup, find_packages

setup(
    name="HelloWorld",
    version="0.1",
    packages=find_packages(),
    setup_requires=["setuptools_hg"],
)

If you run this setup.py setuptools will automatically download setuptools_hg to the directory where the setup.py is located at (and won’t install it anywhere else) to get all package data files from the Mercurial repository.

Options

Set the HG_SETUPTOOLS_FORCE_CMD environment variable before running setup.py if you want to enforce the use of the hg command. “””

CHANGES

0.4

Release files for setuptools_hg 0.4

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

Source distribution (sdist)

Source distribution for setuptools_hg 0.4
File Size Uploaded
setuptools_hg-0.4.tar.gz 11.1 kB Details

Release files / setuptools_hg-0.4.tar.gz

Download URL setuptools_hg-0.4.tar.gz
Size 11.1 kB
Tags Source
SHA-256 checksum
How to use checksums
a41c3f9e7e503d760068aefd707ad82297a8d734078f478013b50be0dbe28f4e
BLAKE2b-256 checksum
How to use checksums
6701d1736a881ea8af3c9a9f18aa011a2fdd044789a86a9be4948697b42154e1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.4 This release

1 release file

0.3

1 release file

0.2.2

1 release file

0.2.1

1 release file

0.2

1 release file

0.1.5

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1

1 release file

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