Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'extras_require' must be a dictionary whose values are strings or lists #64

Closed
jondkelley opened this issue Jul 20, 2018 · 3 comments
Closed
Labels

Comments

@jondkelley
Copy link

jondkelley commented Jul 20, 2018

Minimum, Complete, Verifiable Example

  • CentOS Linux 7.5
  • Python 2.7.5
  • Centos 7 package: python-setuptools 0.9.8 (latest from Redhat 7, added Apr 12, 2017)

Create a setup.py with natsort required:

# -*- coding: utf-8 -*-
# !/usr/bin/python

import sys

from setuptools import setup

sys.path.insert(0, '.')

if __name__ == "__main__":
    package = "test_bug"
    setup(
        name=package,
        version="0.0.1",
        author="Nobody",
        author_email="nobody@aol.com",
        url="https://github.com/SethMMorton",
        license="ASLv2",
        packages=[package],
        package_dir={package: package},
        description=(
            'test'
        ),
        long_description=(
            'test'
        ),
        classifiers=[
            'Intended Audience :: System Administrators',
        ],
        data_files=[],
        install_requires=[
            'natsort'
        ]
    )

Run command

/usr/bin/python2.7 setup.py install

Error message, Traceback, Desired behavior, Suggestion, Request, or Question

Processing dependencies for test_bug==0.0.1
Searching for natsort
Reading https://pypi.python.org/simple/natsort/
Best match: natsort 5.3.3
Downloading https://files.pythonhosted.org/packages/9b/04/f397de5d77942e37cf31f2d37ba7cc2b6f46a440e5dd41e3ab3474f51a0e/natsort-5.3.3.tar.gz#sha256=da930bfddce941526955dea8d35a44243c96adf919ceb758ba7bbd1ba5b0a39a
Processing natsort-5.3.3.tar.gz
Writing /tmp/easy_install-QQ9Rgf/natsort-5.3.3/setup.cfg
Running natsort-5.3.3/setup.py -q bdist_egg --dist-dir /tmp/easy_install-QQ9Rgf/natsort-5.3.3/egg-dist-tmp-mM234_
error: Setup script exited with error in natsort setup command: 'extras_require' must be a dictionary whose values are strings or lists of strings containing valid project/version requirement specifiers.
@jondkelley
Copy link
Author

jondkelley commented Jul 20, 2018

This can actually be resolved by

pip2.7 install --upgrade setuptools

on Centos 7. It's interesting to me Redhat offers no upgrade path for a modern python-setuptools.

I will close this issue.

@SethMMorton
Copy link
Owner

What version of setuptools was being used?

SethMMorton added a commit that referenced this issue Nov 18, 2018
The syntax "fastnumbers >= 2.0.0; python_version > 2.6" is "new" in the
sense that there are still OSs (like CentOS) that use still have
setuptools versions installed that do not support it.

The solution is to selectively add the dependency using logic rather
than declaratively.

This will solve issue #64.
SethMMorton added a commit that referenced this issue Nov 18, 2018
The syntax "fastnumbers >= 2.0.0; python_version > 2.6" is "new" in the
sense that there are still OSs (like CentOS) that use still have
setuptools versions installed that do not support it.

The solution is to selectively add the dependency using logic rather
than declaratively.

This will solve issue #64.
@SethMMorton
Copy link
Owner

SethMMorton commented Nov 19, 2018

@jondkelley FYI, natsort version 5.5.0 was just released with an update that supports older setuptools versions, so you shouldn't have to update to install natsort anymore.

@SethMMorton SethMMorton added the bug label Feb 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants