-
Notifications
You must be signed in to change notification settings - Fork 29
/
setup.py
32 lines (26 loc) · 784 Bytes
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import os
from setuptools import setup, Extension
from Cython.Build import cythonize
#####################################
VERSION = "1.0"
ISRELEASED = False
__version__ = VERSION
#####################################
extension_module = Extension(
'pyappveyordemo.extension',
sources=['pyappveyordemo/extension.pyx']
)
if os.environ['CONDA_BUILD']:
with open('__conda_version__.txt', 'w') as f:
if ISRELEASED:
f.write(VERSION)
else:
f.write(VERSION + '.dev')
setup(
name = 'python-appveyor-demo',
version = VERSION,
description = 'This is a demo package with a compiled C extension.',
ext_modules = cythonize([extension_module]),
zip_safe=False,
packages=['pyappveyordemo', 'pyappveyordemo.tests'],
)