question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Document setuptools upgrade for CentOS7

See original GitHub issue

Installation described for CentOS 7 failed on a fresh GenericCloud image with:

$ sudo yum install -y epel-release
$ sudo yum install -y gcc python-pip python-devel openssl-devel libselinux-python
$ pip install --user molecule
[...]
Collecting testinfra==1.19.0 (from molecule==2.20)
  Using cached https://files.pythonhosted.org/packages/2b/96/3c0eb74894acf3e026e437ee1b1161a200adb9c9a189c36bc4a92ed2db79/testinfra-1.19.0.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-asndpD/testinfra/setup.py", line 59, in <module>
        'six>=1.4',
      File "/usr/lib64/python2.7/distutils/core.py", line 112, in setup
        _setup_distribution = dist = klass(attrs)
      File "/usr/lib/python2.7/site-packages/setuptools/dist.py", line 269, in __init__
        _Distribution.__init__(self,attrs)
      File "/usr/lib64/python2.7/distutils/dist.py", line 287, in __init__
        self.finalize_options()
      File "/usr/lib/python2.7/site-packages/setuptools/dist.py", line 302, in finalize_options
        ep.load()(self, ep.name, value)
      File "/tmp/pip-build-asndpD/testinfra/setuptools_scm-3.2.0-py2.7.egg/setuptools_scm/integration.py", line 10, in version_keyword
      File "/tmp/pip-build-asndpD/testinfra/setuptools_scm-3.2.0-py2.7.egg/setuptools_scm/version.py", line 66, in _warn_if_setuptools_outdated
    setuptools_scm.version.SetuptoolsOutdatedWarning: your setuptools is too old (<12)

The version bump of testinfra from 1.16.0 to 1.19.0 by #1751 causes this issue.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
robertvolkmanncommented, Mar 21, 2019

Hi @decentral1se,

a virtual environment is not an option because of the selinux trap:

Keep in mind that on selinux supporting systems, if you install into a virtual environment, you may face :gh:issue <ansible/ansible/issues/34340> even if selinux is not enabled or is configured to be permissive.

My solution is to upgrade setuptools via:

pip install --upgrade --user setuptools

Maybe this should be added to the documentation.

1reaction
ssbarneacommented, Mar 25, 2019

I will close it because I was not able to reproduce it myself. Still, if we find a way to reproduce it we should reopen it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Document setuptools upgrade for CentOS7 #1859 - GitHub
Installation described for CentOS 7 failed on a fresh GenericCloud image with: $ sudo yum install -y epel-release $ sudo yum install -y...
Read more >
Installing python-setuptools 20.4 or greater on CENTOS 7 for ...
I am trying to install setuptools 20.4 or greater as it is a requirement for CKAN. I have tried downloading the rpm files...
Read more >
python-setuptools-0.9.8-7.el7.noarch.rpm - CentOS Repositories
Setuptools is a collection of enhancements to the Python distutils that allow you to more easily build and distribute Python packages, especially ones...
Read more >
Installing pip/setuptools/wheel with Linux Package Managers
This section covers how to install pip, setuptools, and wheel using Linux package managers. ... To additionally upgrade setuptools, run:.
Read more >
setuptools-rust - PyPI
Compile and distribute Python extensions written in Rust as easily as if they were written in C. Setup. For a complete example, see...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found