-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8ae1827
commit 99ba8c0
Showing
1 changed file
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
from setuptools import setup, find_packages | ||
from distutils.extension import Extension | ||
from pathlib import Path | ||
|
||
import numpy | ||
try: | ||
import numpy | ||
numpy.get_include() | ||
except ModuleNotFoundError: | ||
pass | ||
|
||
# handle cython modules: pyqcprot module for the rotation matrix | ||
try: | ||
|
@@ -16,7 +19,7 @@ | |
print (f'use_cython: {use_cython}') | ||
|
||
ext_modules = [Extension("ties/pyqcprot_ext/pyqcprot", [f"ties/pyqcprot_ext/pyqcprot.{'pyx' if use_cython else 'c'}"], | ||
include_dirs=[numpy.get_include()], | ||
include_dirs=[], | ||
extra_compile_args=["-O3","-ffast-math"])] | ||
|
||
setup( | ||
|
@@ -29,9 +32,6 @@ | |
author_email='[email protected]', | ||
packages=find_packages(), | ||
include_package_data=True, | ||
install_requires=[ | ||
'numpy', 'cython' | ||
], | ||
entry_points={ | ||
'console_scripts': [ | ||
'ties = ties:cli.command_line_script' | ||
|