Add requirements.txt to MANIFEST. Also add version
checking for setuptools to setup.py.
This commit is contained in:
8
setup.py
8
setup.py
@@ -6,7 +6,12 @@ except ImportError:
|
||||
raise RuntimeError('No cython installed. Please run `pip install cython`')
|
||||
|
||||
if Cython.__version__ < '0.19.1':
|
||||
raise RuntimeError('Old cython installed. Please run `pip install -U cython`')
|
||||
raise RuntimeError('Old cython installed (%s). Please run `pip install -U cython`' % Cython.__version__)
|
||||
|
||||
import pkg_resources
|
||||
setuptools_version = pkg_resources.get_distribution("setuptools").version
|
||||
if setuptools_version < '0.8':
|
||||
raise RuntimeError('Old setuptools installed (%s). Please run `pip install -U setuptools`. Running `pip install capnp` will not work alone, since setuptools needs to be upgraded before installing anything else.' % setuptools_version)
|
||||
|
||||
from distutils.core import setup
|
||||
import os
|
||||
@@ -16,7 +21,6 @@ MINOR = 3
|
||||
MICRO = 5
|
||||
VERSION = '%d.%d.%d' % (MAJOR, MINOR, MICRO)
|
||||
|
||||
|
||||
def write_version_py(filename=None):
|
||||
cnt = """\
|
||||
version = '%s'
|
||||
|
||||
Reference in New Issue
Block a user