python-3.x - pip 不构建 .so 文件
问题描述
setuptools.setup(
name='mat_8',
version='0.0.1',
description='Integral Mat-8 Functions',
install_requires=REQUIRED_PACKAGES,
packages=setuptools.find_packages(),
ext_modules=cythonize("mat_8/numerical_calcs.pyx", language_level=3),
package_data={"mat_8": ["numerical_calcs.pyx",
"tables/Beta_tables.json",
"tables/F_tables.json",
"tables/G_0_Gb_tables.json",
"tables/G_0_Gm_tables.json",
"tables/G_Gb_tables.json",
"tables/G_Gm_tables.json",
"tables/Htables.json"
]}
)
这是setup.py
配置。mat_8
是一个具有空__init__.py
文件的 python 包,numerical_calcs.pyx
是“mat_8”文件夹的子级。
我正在尝试做这些设置
- 创建
tar.gz
者python setup.py sdist
- 申请
pip install mat-8-xxx.tar.gz
安装为 site_package。
但是,pip install mat-8-xxx.tar.gz
不会创建任何.so
文件。如果我使用python setup.py build_ext --inplace
,则在文件夹.so
下生成mat_8
文件。
我假设这是点子问题。错过了一些配置。
解决方案
推荐阅读
- git - 当我输入 git config --list 我的 user.password 也以纯文本形式显示
- python - Django django.contrib.staticfiles.templatetags.static 在 3.0 中删除:如何替换功能?
- javascript - TypeError:无法读取 React 本机中未定义的属性“集”
- javascript - 使用 ngAfterViewInit 在子组件和父组件之间进行通信
- ios - 如何为自定义单元格中的动态附加输入字段添加约束
- json - 在液体模板中迭代数组对象
- mysql - 如何向 Rails 中的多态评论的所有评论者发送通知?
- database - 使用 procided 大小的数据文件创建表空间时出错
- c# - 如何从 .csv 文件中获取特定列的所有行
- google-calendar-api - 每个用户的 G Suite 日历列表