- 重组代码为模块化结构:lbm/, common/, cuda/ - LBM 相关代码移至 src/CelerisLab/lbm/ - 通用工具移至 src/CelerisLab/common/ - CUDA 编译器移至 src/CelerisLab/cuda/ - 更新所有导入路径以适配新结构 - 提供灵活的导入接口(直接导入/模块导入/命名空间风格) - 为未来扩展(FEM, SPH, MPM 等)做好准备
40 lines
1.2 KiB
Python
40 lines
1.2 KiB
Python
from setuptools import setup, find_packages
|
|
|
|
with open("README.md", "r", encoding="utf-8") as fh:
|
|
long_description = fh.read()
|
|
|
|
setup(
|
|
name='CelerisLab',
|
|
version='0.2.0',
|
|
author='Frank14f',
|
|
description='GPU-accelerated Lattice Boltzmann Method (LBM) CFD solver using CUDA',
|
|
long_description=long_description,
|
|
long_description_content_type="text/markdown",
|
|
url='https://github.com/frank14f/CelerisLab',
|
|
packages=find_packages(where='src'),
|
|
package_dir={'': 'src'},
|
|
package_data={
|
|
'CelerisLab.lbm': [
|
|
'kernels/*.cu',
|
|
'kernels/*.h',
|
|
'configs/*.json',
|
|
],
|
|
},
|
|
install_requires=[
|
|
'pycuda>=2020.1',
|
|
'numpy>=1.19.0',
|
|
'scipy>=1.5.0',
|
|
],
|
|
python_requires='>=3.8',
|
|
classifiers=[
|
|
'Development Status :: 3 - Alpha',
|
|
'Intended Audience :: Science/Research',
|
|
'Topic :: Scientific/Engineering :: Physics',
|
|
'License :: OSI Approved :: MIT License',
|
|
'Programming Language :: Python :: 3',
|
|
'Programming Language :: Python :: 3.8',
|
|
'Programming Language :: Python :: 3.9',
|
|
'Programming Language :: Python :: 3.10',
|
|
'Programming Language :: Python :: 3.11',
|
|
],
|
|
) |