A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2002-July/026228.html below:

[Python-Dev] Re: Patch level versions and new features (Was: Some dull gc stats)

[Python-Dev] Re: Patch level versions and new features (Was: Some dull gc stats) [Python-Dev] Re: Patch level versions and new features (Was: Some dull gc stats)Fredrik Lundh fredrik@pythonware.com
Tue, 9 Jul 2002 15:50:26 +0200
barry wrote:

>     MAL> The user would in both cases type 'python setup.py install'
>     MAL> but the install command would automatically choose the
>     MAL> right target subdir (site-packages/ or system-packages/).
>=20
> Except you can't always tell if its a system package or an add-on.
> email for example is an add-on for Python 2.1, but a system package
> for Python 2.2.

assuming that the package maintainer is informed when a package
is added to the standard library, that packages won't move in and
out too much, and/or that most users probably don't want to down-
grade to an older package version, you could of course write:

    if sys.version_info >=3D (2, 2):
        pkgtype =3D "system-package"
    else:
        pkgtype =3D "site-package"

    setup(... pkgtype=3Dpkgtype ...)

in your setup.py file, once your package has been added.

</F>





RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4