Jan-06-2017, 01:46 PM
Hi,
I have built a sdist package with python2.7 setup.py sdist. The package is built. However when installing at localmachine, local machine virtual environment or a virtual machine all with Linux MInt 18 and python 2.7 the installation fails when the setup.py install_requires contains anything else than 'nose', e.g.:
[sudo -H] pip2 install ./dist/ksdircmp-0.2.tar.gz is the following:
/blueslow
I have built a sdist package with python2.7 setup.py sdist. The package is built. However when installing at localmachine, local machine virtual environment or a virtual machine all with Linux MInt 18 and python 2.7 the installation fails when the setup.py install_requires contains anything else than 'nose', e.g.:
config = { 'name' : 'ksdircmp', 'description': 'Compare filenames in two directories', 'author': Name', 'url': 'Url/project/sdircmp', 'download_url': 'Where to download it.', 'author_email': 'mailadress', 'version' : '0.2', 'install_requires': ['nose','os'], # Adding the following to install_requires make the installtion crash #,'os','sys','shutil', 'hashlib', 'argparse','tempfile', 'string', 'random','logging'], 'packages': ['ksdircmp'], 'scripts': ['bin/dcmp'] } setup(**config)The project structure is:
Output:├── bin
│ └── dcmp
├── dist
│ ├── ksdircmp-0.1.tar.gz
│ └── ksdircmp-0.2.tar.gz
├── docs
├── ksdircmp
│ ├── __init__.py
│ ├── ksdircmp.py
│ └── tests
│ ├── __init__.py
│ └── ksdircmp_tests.py
├── ksdircmp.egg-info
│ ├── dependency_links.txt
│ ├── PKG-INFO
│ ├── requires.txt
│ ├── SOURCES.txt
│ └── top_level.txt
├── README.rst
└── setup.py
If I remove 'os' from install_requires it installs allright. The error message received by[sudo -H] pip2 install ./dist/ksdircmp-0.2.tar.gz is the following:
Output:Processing ./dist/ksdircmp-0.2.tar.gz
Requirement already satisfied: nose in /usr/local/lib/python2.7/dist-packages (from ksdircmp==0.2)
Collecting os (from ksdircmp==0.2)
Using cached os-0.5.tar.gz
Complete output from command python setup.py egg_info:
Error: Traceback (most recent call last):
File "<string>", line 1, in <module>
IOError: [Errno 2] No such file or directory: '/tmp/pip-build-jLDFXg/os/setup.py'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-jLDFXg/os/
If I change os to hashlib I receive a similar output. ksdircmp.py imports os and hashlib. bin/dcmp imports os, sys, argparse, shutil and logging and ksdircmp. ksdircmp_test.py imports nose.tools, os,tempfile,shutil, random, string and ksdircmp. I have searched internet but not found any general or applicable information to solve this. Any help appreciated/blueslow