diff options
author | Paolo G. Giarrusso <p.giarrusso@gmail.com> | 2019-11-28 22:21:11 +0100 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2019-11-29 06:00:55 +0100 |
commit | 9afd6bd6ebb072c3710e442d2284d0a1c43a0e54 (patch) | |
tree | ccab008f676a8b5e8bdd49fa94f8f244d7d26b7c /setup.py | |
parent | 48e55050f8bec34d57a1a86e06e779c6288b8341 (diff) | |
download | pygments-git-9afd6bd6ebb072c3710e442d2284d0a1c43a0e54.tar.gz |
Ensure `setup.py` works again
While `pip3 install .` still works, `python3 setup.py install` does not (and
ditto for Python2), because subpackages of `pygments` don't get installed. Even
running `find_packages` on its own has consistent behavior:
```
$ python3
>>> from setuptools import setup, find_packages
>>> find_packages(exclude=['tests'])
['pygments', 'pygments.filters', 'pygments.lexers', 'pygments.formatters', 'pygments.styles']
>>> find_packages(include=['pygments'])
['pygments']
```
The bug seems to have been introduced in
8d0828bbfc5b8deb7525a19e1037704f644563da.
Tested on macOS 10.14 with Homebrew Python 2.7.17 and 3.7.5.
Diffstat (limited to 'setup.py')
-rwxr-xr-x | setup.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -33,7 +33,7 @@ setup( description = 'Pygments is a syntax highlighting package written in Python.', long_description = __doc__, keywords = 'syntax highlighting', - packages = find_packages(include=['pygments']), + packages = find_packages(exclude=['tests']), entry_points = { 'console_scripts': ['pygmentize = pygments.cmdline:main'], }, |