跳转到主要内容

包含LLVM Compiler RT模块软件数据文件的Python模块。

项目描述

pythondata-software-compiler_rt

软件编译器_rt打包进Python模块所需的非Python文件,以便它们可以与Python库和工具一起使用。

这对于与LiteX等工具一起使用非常有用。

数据文件可以在Python模块pythondata_software_compiler_rt下找到。可以使用pythondata_software_compiler_rt.data_location值在文件系统中找到这些文件。

直接获取数据文件的示例;

import pythondata_software_compiler_rt

my_data_file = "abc.txt"

with open(os.path.join(pythondata_software_compiler_rt.data_location, my_data_file)) as f:
    print(f.read())

使用litex.data.find API获取数据文件的示例;

from pythondata_software_compiler_rt import data_file

my_data_file = "abc.txt"

with open(data_file(my_data_file)) as f:
    print(f.read())

数据文件来自https://git.llvm.org/git/compiler-rt.git/,并使用git subtrees导入到目录pythondata_software_compiler_rt/data中。

从git仓库安装

手动

您可以手动安装该软件包,但是**不建议**这样做。

git clone https://github.com/litex-hub/pythondata-software-compiler_rt.git
cd pythondata-software-compiler_rt
sudo python setup.py install

使用与git仓库一起的pip

您可以使用pip直接从github安装数据包,方法如下;

pip install --user git+https://github.com/litex-hub/pythondata-software-compiler_rt.git

如果您想为整个系统安装而不是仅针对当前用户,则需要删除--user参数,并以sudo运行,如下所示;

sudo pip install git+https://github.com/litex-hub/pythondata-software-compiler_rt.git

您可以使用以下方式安装存储库的特定版本;

pip install --user git+https://github.com/litex-hub/pythondata-software-compiler_rt.git@<tag>
pip install --user git+https://github.com/litex-hub/pythondata-software-compiler_rt.git@<branch>
pip install --user git+https://github.com/litex-hub/pythondata-software-compiler_rt.git@<hash>

使用requirements.txt文件

使用以下方法将Python的requirements.txt文件添加到其中;

-e git+https://github.com/litex-hub/pythondata-software-compiler_rt.git

要使用存储库的特定版本,请使用以下方法;

-e https://github.com/litex-hub/pythondata-software-compiler_rt.git@<hash>

PyPi安装

使用pip

pip install --user pythondata-software-compiler_rt

项目详情


下载文件

下载适合您平台文件。如果您不确定选择哪个,请了解更多关于安装软件包的信息。

源分布

pythondata-software-compiler_rt-0.0.post6206.tar.gz (2.1 MB 查看哈希值)

上传时间

构建分布

由以下支持

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误日志 StatusPage StatusPage 状态页面