Sikuwa first commit
Some checks are pending
CI / Test (Python 3.10 on macos-latest) (push) Waiting to run
CI / Test (Python 3.11 on macos-latest) (push) Waiting to run
CI / Test (Python 3.12 on macos-latest) (push) Waiting to run
CI / Test (Python 3.8 on macos-latest) (push) Waiting to run
CI / Test (Python 3.9 on macos-latest) (push) Waiting to run
CI / Test (Python 3.10 on ubuntu-latest) (push) Waiting to run
CI / Test (Python 3.11 on ubuntu-latest) (push) Waiting to run
CI / Test (Python 3.12 on ubuntu-latest) (push) Waiting to run
CI / Test (Python 3.8 on ubuntu-latest) (push) Waiting to run
CI / Test (Python 3.9 on ubuntu-latest) (push) Waiting to run
CI / Test (Python 3.10 on windows-latest) (push) Waiting to run
CI / Test (Python 3.11 on windows-latest) (push) Waiting to run
CI / Test (Python 3.12 on windows-latest) (push) Waiting to run
CI / Test (Python 3.8 on windows-latest) (push) Waiting to run
CI / Test (Python 3.9 on windows-latest) (push) Waiting to run
CI / Lint (push) Waiting to run
CI / Release (push) Blocked by required conditions
Documentation / Build Documentation (push) Waiting to run
Some checks are pending
CI / Test (Python 3.10 on macos-latest) (push) Waiting to run
CI / Test (Python 3.11 on macos-latest) (push) Waiting to run
CI / Test (Python 3.12 on macos-latest) (push) Waiting to run
CI / Test (Python 3.8 on macos-latest) (push) Waiting to run
CI / Test (Python 3.9 on macos-latest) (push) Waiting to run
CI / Test (Python 3.10 on ubuntu-latest) (push) Waiting to run
CI / Test (Python 3.11 on ubuntu-latest) (push) Waiting to run
CI / Test (Python 3.12 on ubuntu-latest) (push) Waiting to run
CI / Test (Python 3.8 on ubuntu-latest) (push) Waiting to run
CI / Test (Python 3.9 on ubuntu-latest) (push) Waiting to run
CI / Test (Python 3.10 on windows-latest) (push) Waiting to run
CI / Test (Python 3.11 on windows-latest) (push) Waiting to run
CI / Test (Python 3.12 on windows-latest) (push) Waiting to run
CI / Test (Python 3.8 on windows-latest) (push) Waiting to run
CI / Test (Python 3.9 on windows-latest) (push) Waiting to run
CI / Lint (push) Waiting to run
CI / Release (push) Blocked by required conditions
Documentation / Build Documentation (push) Waiting to run
This commit is contained in:
30
cpp_cache/setup.py
Normal file
30
cpp_cache/setup.py
Normal file
@@ -0,0 +1,30 @@
|
||||
# sikuwa/cpp_cache/setup.py
|
||||
# 用于编译和安装C++智能缓存扩展模块的setup文件
|
||||
|
||||
from setuptools import setup, Extension
|
||||
import sys
|
||||
|
||||
# 获取Python的include目录
|
||||
py_include_dirs = [sys.prefix + '/include']
|
||||
|
||||
# 定义扩展模块
|
||||
smart_cache_extension = Extension(
|
||||
'pysmartcache', # 扩展模块名称
|
||||
sources=['smart_cache_minimal.cpp', 'pysmartcache_minimal.cpp'], # 源文件
|
||||
include_dirs=[".", *py_include_dirs], # 包含目录
|
||||
language='c++', # 使用C++
|
||||
extra_compile_args=['/STD:c++17'], # 编译参数
|
||||
)
|
||||
|
||||
# 设置setup配置
|
||||
setup(
|
||||
name='sikuwa_cpp_cache',
|
||||
version='0.1',
|
||||
description='C++ Smart Cache System for Sikuwa',
|
||||
author='Sikuwa Team',
|
||||
author_email='',
|
||||
packages=['sikuwa.cpp_cache'],
|
||||
package_dir={'sikuwa.cpp_cache': '.'},
|
||||
ext_modules=[smart_cache_extension],
|
||||
zip_safe=False,
|
||||
)
|
||||
Reference in New Issue
Block a user