From 904094281b062aff3445ca41fec57e4cfd0f563d Mon Sep 17 00:00:00 2001 From: Matthew Sotoudeh Date: Tue, 10 Nov 2020 14:06:35 -0800 Subject: Initial code release --- ts_cpp/setup.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 ts_cpp/setup.py (limited to 'ts_cpp/setup.py') diff --git a/ts_cpp/setup.py b/ts_cpp/setup.py new file mode 100644 index 0000000..37111f3 --- /dev/null +++ b/ts_cpp/setup.py @@ -0,0 +1,19 @@ +"""Setup script for the Triplet structure C++ extensions. + +See https://docs.python.org/3/extending/building.html +""" +from distutils.core import setup, Extension +from glob import glob +import pybind11 + +TC_CPP_MODULE = Extension("ts_cpp", + include_dirs=[pybind11.get_include()], + extra_compile_args=["-O3", "-std=c++11"], + sources=glob("*.cc")) + +setup(name="ts_cpp", + version="1.0", + description="Optimized triplet structure extension", + author="Matthew A. Sotoudeh", + author_email="masotoudeh@ucdavis.edu", + ext_modules=[TC_CPP_MODULE]) -- cgit v1.2.3