Forgot to write version file
This commit is contained in:
4
setup.py
4
setup.py
@@ -9,13 +9,13 @@ if Cython.__version__ < '0.19.1':
|
|||||||
raise RuntimeError('Old cython installed. Please run `pip install -U cython`')
|
raise RuntimeError('Old cython installed. Please run `pip install -U cython`')
|
||||||
|
|
||||||
from distutils.core import setup
|
from distutils.core import setup
|
||||||
|
import os
|
||||||
|
|
||||||
MAJOR = 0
|
MAJOR = 0
|
||||||
MINOR = 1
|
MINOR = 1
|
||||||
MICRO = 0
|
MICRO = 0
|
||||||
VERSION = '%d.%d.%d' % (MAJOR, MINOR, MICRO)
|
VERSION = '%d.%d.%d' % (MAJOR, MINOR, MICRO)
|
||||||
|
|
||||||
|
|
||||||
def write_version_py(filename=None):
|
def write_version_py(filename=None):
|
||||||
cnt = """\
|
cnt = """\
|
||||||
version = '%s'
|
version = '%s'
|
||||||
@@ -31,6 +31,8 @@ short_version = '%s'
|
|||||||
finally:
|
finally:
|
||||||
a.close()
|
a.close()
|
||||||
|
|
||||||
|
write_version_py()
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="capnp",
|
name="capnp",
|
||||||
version=VERSION,
|
version=VERSION,
|
||||||
|
|||||||
Reference in New Issue
Block a user