Skip to content

Commit

Permalink
Building and setup
Browse files Browse the repository at this point in the history
  • Loading branch information
bieniekmateusz committed Aug 13, 2023
1 parent 8ae1827 commit 99ba8c0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions setup.py
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:
Expand All @@ -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(
Expand All @@ -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'
Expand Down

0 comments on commit 99ba8c0

Please sign in to comment.