From 99ba8c0ed5f8912a681c514f57983fa40de6db5c Mon Sep 17 00:00:00 2001 From: bieniekmat Date: Sun, 13 Aug 2023 23:00:15 +0100 Subject: [PATCH] Building and setup --- setup.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/setup.py b/setup.py index 10842ae..3847254 100644 --- a/setup.py +++ b/setup.py @@ -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='bieniekmat@gmail.com', packages=find_packages(), include_package_data=True, - install_requires=[ - 'numpy', 'cython' - ], entry_points={ 'console_scripts': [ 'ties = ties:cli.command_line_script'