2017-01-19 23:55:14 +01:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
|
2017-01-20 03:09:48 +01:00
|
|
|
import sys, os
|
|
|
|
import os.path as path
|
|
|
|
|
|
|
|
#~ from sysconfig import get_python_version, get_path
|
|
|
|
|
2017-01-19 23:55:14 +01:00
|
|
|
from setuptools import setup
|
|
|
|
from setuptools import Extension
|
2017-01-20 01:22:00 +01:00
|
|
|
from setuptools import find_packages
|
|
|
|
|
2017-01-20 03:09:48 +01:00
|
|
|
#Weirdly long way to get to the actual header files we need to include.
|
|
|
|
#~ pyPath = path.join(path.abspath(get_path('include') + os.sep + '..'), 'site/python{}'.format(get_python_version()))
|
|
|
|
|
|
|
|
#Better - Mac & Linux only.
|
|
|
|
#~ pyPath = '/usr/local/include/python{}'.format(get_python_version())'
|
|
|
|
|
2017-01-26 00:50:59 +01:00
|
|
|
#Make sure we're using gcc.
|
|
|
|
os.environ["CC"] = "g++"
|
|
|
|
os.environ["CXX"] = "g++"
|
|
|
|
|
2017-01-25 03:09:25 +01:00
|
|
|
cpp_args = ['-fopenmp', '-std=gnu++14', '-O3']
|
2017-01-20 01:22:00 +01:00
|
|
|
link_args = ['-fopenmp']
|
|
|
|
|
|
|
|
olOpt = Extension( 'openlut.lib.olOpt',
|
|
|
|
sources = ['openlut/lib/olOpt.cpp'],
|
2017-01-20 03:09:48 +01:00
|
|
|
#~ include_dirs=[pyPath], #Include from the the python3 source code.
|
2017-01-20 01:22:00 +01:00
|
|
|
language = 'c++',
|
|
|
|
extra_compile_args = cpp_args,
|
|
|
|
extra_link_args = cpp_args
|
|
|
|
)
|
2017-01-19 23:55:14 +01:00
|
|
|
|
|
|
|
setup( name = 'openlut',
|
2017-01-25 03:09:25 +01:00
|
|
|
version = '0.2.0',
|
2017-01-19 23:55:14 +01:00
|
|
|
description = 'OpenLUT is a practical color management library.',
|
|
|
|
author = 'Sofus Rose',
|
|
|
|
author_email = 'sofus@sofusrose.com',
|
|
|
|
url = 'https://www.github.com/so-rose/openlut',
|
2017-01-20 01:22:00 +01:00
|
|
|
|
|
|
|
packages = find_packages(exclude=['src']),
|
|
|
|
|
|
|
|
ext_modules = [olOpt],
|
2017-01-19 23:55:14 +01:00
|
|
|
|
|
|
|
license = 'MIT Licence',
|
|
|
|
|
|
|
|
keywords = 'color image images processing',
|
|
|
|
|
2017-01-20 01:22:00 +01:00
|
|
|
install_requires = ['numpy', 'wand', 'scipy', 'pygame','PyOpenGL', 'setuptools'],
|
2017-01-19 23:55:14 +01:00
|
|
|
|
|
|
|
classifiers = [
|
|
|
|
'Development Status :: 3 - Alpha',
|
|
|
|
|
|
|
|
'License :: OSI Approved :: MIT License',
|
|
|
|
|
2017-01-20 01:22:00 +01:00
|
|
|
'Programming Language :: Python :: 3'
|
2017-01-19 23:55:14 +01:00
|
|
|
]
|
|
|
|
)
|