Skip to content

Commit

Permalink
Bump version and cmdclass=build_ext
Browse files Browse the repository at this point in the history
  • Loading branch information
tberlok committed Nov 2, 2023
1 parent 020a7bc commit 722114f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ python:
clean:
python3 setup.py clean
rm -rf paicos/cython/*.{c,so,html}
rm -rf paicos/__pycache__ paicos/cython/__pycache__
rm -rf __pycache__ paicos/__pycache__ paicos/cython/__pycache__
rm -rf dist
rm -rf build
rm -rf paicos.egg-info
Expand Down
2 changes: 1 addition & 1 deletion paicos/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
The code is parallel with an OpenMP Cython implementation.
"""

__version__ = "0.1.4"
__version__ = "0.1.5"
__author__ = 'Thomas Berlok'
__credits__ = 'Leibniz-Institute for Astrophysics Potsdam (AIP)'

Expand Down
12 changes: 7 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from setuptools import Extension
from Cython.Build import cythonize
from Cython.Compiler import Options
import Cython
import sys
import os
import numpy
Expand All @@ -17,8 +18,7 @@
"wraparound": False, 'language_level': "3"}


# sources = glob.glob('paicos/cython/*.pyx')
# sources += glob.glob('paicos/cython/*.c')

include_dirs = ['paicos/cython/', numpy.get_include()]
extra_compile_args = ['-fopenmp', "-DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION",
"-Wno-unused-function"]
Expand Down Expand Up @@ -70,10 +70,9 @@
with open('README.md') as f:
long_description = f.read()


setup(
name='paicos',
version='0.1.4',
version='0.1.5',
description=('An object-oriented Python package for analysis of '
+ '(cosmological) simulations performed with Arepo.'),
url='https://github.com/tberlok/paicos',
Expand All @@ -84,6 +83,9 @@
license='BSD 3-clause',
packages=setuptools.find_packages(),
install_requires=install_requires,
package_data = {'paicos/cython': ['*.c', '*.so']},
classifiers=['Programming Language :: Python :: 3'],
ext_modules=cythonize(ext_modules,
compiler_directives=compiler_directives))
compiler_directives=compiler_directives),
cmdclass={'build_ext': Cython.Build.build_ext},
)

0 comments on commit 722114f

Please sign in to comment.