Skip to content

Instantly share code, notes, and snippets.

@mattbennett
Created October 4, 2019 13:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattbennett/d851e20ee9d2fedb01959c9c8078f2c6 to your computer and use it in GitHub Desktop.
Save mattbennett/d851e20ee9d2fedb01959c9c8078f2c6 to your computer and use it in GitHub Desktop.
from setuptools import setup, find_packages
setup(
name='MyPackageName',
version='1.0.0',
url='https://github.com/mypackage.git',
author='Author Name',
author_email='author@gmail.com',
description='Description of my package',
packages=[],
install_requires=[
'numpy >= 1.11.3 --no-binary :all:',
],
)
@mattbennett
Copy link
Author

$ python
Python 3.7.4 (default, Aug 23 2019, 12:12:50)
[Clang 10.0.1 (clang-1001.0.46.4)] on darwin
$ pip --version
pip 19.2.3 from /Users/mattbennett/.virtualenvs/tmp-1e4ec19d965b2df/lib/python3.7/site-packages/pip (python 3.7)
$ python -c "import pkg_resources; print(pkg_resources.get_distribution('setuptools').version)"
41.2.0
$ pip install .
Processing /Users/mattbennett/.virtualenvs/tmp-1e4ec19d965b2df
    ERROR: Command errored out with exit status 1:
     command: /Users/mattbennett/.virtualenvs/tmp-1e4ec19d965b2df/bin/python3.7 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/jd/c8gwfl2j40990qvpg4fl476h0000gn/T/pip-req-build-w7dcmq0h/setup.py'"'"'; __file__='"'"'/private/var/folders/jd/c8gwfl2j40990qvpg4fl476h0000gn/T/pip-req-build-w7dcmq0h/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base pip-egg-info
         cwd: /private/var/folders/jd/c8gwfl2j40990qvpg4fl476h0000gn/T/pip-req-build-w7dcmq0h/
    Complete output (1 lines):
    error in MyPackageName setup command: 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers; Invalid requirement, parse error at "'--no-bin'"
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
$ python setup.py install
error in MyPackageName setup command: 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers; Invalid requirement, parse error at "'--no-bin'"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment