Skip to content

Commit

Permalink
Create setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
chenxinye authored Jan 25, 2024
1 parent f26a7e0 commit 086a151
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions exp/exp3/dcnn/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
import numpy
from setuptools import setup
from Cython.Build import cythonize

_version = '0.0.1'

with open("README.rst", 'r') as f:
long_description = f.read()

setup_args = {'name':"dcnn",
'packages':["dcnn"],
'version':_version,
'install_requires':["numpy>=1.3.0", "scipy>=0.7.0"],
'package_data':{"dcnn": ["native/native_cc.pyx", "snn/snn_cc.pyx"]
},
'classifiers':["Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"Programming Language :: Python",
"Topic :: Software Development",
"Topic :: Scientific/Engineering",
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Operating System :: Unix',
'Operating System :: MacOS',
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10"
],
'long_description':long_description,
'author':"Xinye Chen, Stefan Güttel",
'author_email':"xinye.chen@manchester.ac.uk, stefan.guettel@manchester.ac.uk",
'description':"Fast and explainable clustering based on sorting",
'long_description_content_type':'text/x-rst',
'url':"https://github.com/nla-group/CLASSIX.git",
'license':'MIT License'
}


setup(
setup_requires=["cython", "numpy>=1.3.0"],
ext_modules = cythonize(["dcnn/native/native_cc.pyx", "dcnn/snn/snn_cc.pyx"],
include_path=["dcnn"],
language="c++"),

extra_compile_args=['-fopenmp'],
extra_link_args=['-fopenmp'],
**setup_args
)

0 comments on commit 086a151

Please sign in to comment.