forked from ondergetekende/python-panavatar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
40 lines (36 loc) · 1.02 KB
/
Copy pathsetup.py
File metadata and controls
40 lines (36 loc) · 1.02 KB
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
33
34
35
36
37
38
39
40
import os
from setuptools import setup
from distutils.extension import Extension
ext_modules = [
Extension("panavatar._natives", ["panavatar/_natives.c"]),
]
if os.path.exists("panavatar/_natives.pyx"):
try:
from Cython.Build import cythonize
ext_modules = cythonize("panavatar/_natives.pyx")
except ImportError:
pass
setup(
name='panavatar',
version='0.3.2',
url='https://github.com/ondergetekende/python-panavatar',
description=(
'Panavatar generates pseudorandom abstract wallpapers'
),
author='Koert van der Veer',
author_email='koert@ondergetekende.nl',
packages=['panavatar'],
ext_modules=ext_modules,
# setup_requires=["cython"],
classifiers=[
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
],
entry_points={
'console_scripts': [
'generate-wallpaper = panavatar:cmdline'
]
},
)