mirror of
https://bitbucket.org/cosmicvoids/vide_public.git
synced 2025-07-04 15:21:11 +00:00
Update build for python compat
- remove distutils deps - add pyproject.toml - add MANIFEST.in - update install instructions
This commit is contained in:
parent
58e65d7d2b
commit
54fe8df970
6 changed files with 238 additions and 250 deletions
|
@ -17,20 +17,36 @@
|
|||
# with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
#+
|
||||
from distutils.core import setup
|
||||
from distutils.extension import Extension
|
||||
from Cython.Distutils import build_ext
|
||||
from setuptools import setup, Extension
|
||||
from setuptools.command.build_ext import build_ext
|
||||
import numpy as np
|
||||
import os
|
||||
|
||||
VOID_GSL=os.environ.get('VOID_GSL')
|
||||
# Optional: Use VOID_GSL environment variable if needed later in the build process
|
||||
VOID_GSL = os.environ.get('VOID_GSL')
|
||||
|
||||
# Define extensions (you can add Cython extensions here if needed)
|
||||
extensions = [
|
||||
# Example of a Cython extension (uncomment and modify if needed)
|
||||
# Extension('your_extension_name', sources=['your_source_file.pyx'], include_dirs=[np.get_include()])
|
||||
]
|
||||
|
||||
setup(
|
||||
name='vide',
|
||||
version='1.0',
|
||||
# cmdclass = {'build_ext': build_ext},
|
||||
include_dirs = [np.get_include()],
|
||||
packages=
|
||||
['vide','vide.backend','vide.apTools', 'vide.voidUtil',
|
||||
'vide.apTools.profiles','vide.apTools.chi2',],
|
||||
include_dirs=[np.get_include()], # Add NumPy include dirs
|
||||
packages=[
|
||||
'vide',
|
||||
'vide.backend',
|
||||
'vide.apTools',
|
||||
'vide.voidUtil',
|
||||
'vide.apTools.profiles',
|
||||
'vide.apTools.chi2',
|
||||
],
|
||||
ext_modules=extensions, # Add extensions if needed
|
||||
cmdclass={'build_ext': build_ext}, # Use setuptools build_ext for Cython
|
||||
install_requires=[
|
||||
'numpy', # Ensure NumPy is installed
|
||||
'cython', # Ensure Cython is installed for building extensions
|
||||
],
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue