Skip to content

Commit

Permalink
BUGFIX: modern setuptools no longer accepts unordered sets
Browse files Browse the repository at this point in the history
Since closing pypa/setuptools#458, setuptools
no longer accepts unordered sets for a dependency lists, which makes any
setup.py call fail with the following error, breaking the installation:

  error in pygogo setup command: 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers; Unordered types are not allowed

Since we don't care about the order at this point, let's just force it to
be a list.

Signed-off-by: Peter Gyongyosi <peter.gyongyosi@balabit.com>
  • Loading branch information
Peter Gyongyosi authored and reubano committed Apr 2, 2018
1 parent 910fa6e commit f41b4b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
from distutils.core import setup, find_packages

sys.dont_write_bytecode = True
py2_requirements = set(pkutils.parse_requirements('py2-requirements.txt'))
dev_requirements = set(pkutils.parse_requirements('dev-requirements.txt'))
py2_requirements = list(set(pkutils.parse_requirements('py2-requirements.txt')))
dev_requirements = list(set(pkutils.parse_requirements('dev-requirements.txt')))
readme = pkutils.read('README.rst')
changes = pkutils.read(p.join('docs', 'CHANGES.rst'))
module = pkutils.parse_module(p.join('pygogo', '__init__.py'))
Expand Down

0 comments on commit f41b4b1

Please sign in to comment.