Skip to content

Commit 4754a3b

Browse files
committed
Support legacy setup.py installs
1 parent 32e22da commit 4754a3b

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

CHANGES.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,17 @@ Change History
33
==============
44

55

6+
0.10.1 (TBD)
7+
------------
8+
9+
Bug fixes:
10+
11+
- `Issue #61`_: Dist failure for Fedora, CentOS, EPEL.
12+
13+
14+
.. _`Issue #61`: https://github.com/cpburnz/python-pathspec/issues/61
15+
16+
617
0.10.0 (2022-08-30)
718
-------------------
819

setup.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
"""
2+
This setup script only exists to support installations where pip cannot
3+
be used such as for system packages.
4+
"""
5+
6+
import setuptools
7+
import sys
8+
9+
if int(setuptools.__version__.split(".")[0]) < 61:
10+
sys.stderr.write((
11+
"WARNING: Installed version of setuptools, {version}, is too old. "
12+
"Version 61.0.0 is required for the pyproject.toml configuration "
13+
"to load. This will most likely build and install as a packaged "
14+
"named 'UNKNOWN'.\n"
15+
).format(version=setuptools.__version__))
16+
17+
setuptools.setup()

0 commit comments

Comments
 (0)