Python模块包含LLVM编译器RT模块软件的数据文件。

pythondata-software-compiler-rt的Python项目详细描述


pythonda-软件-编译器

软件编译器打包所需的非Python文件 使它们可以与Python库和工具一起使用。在

这对于使用诸如 LiteX。在

数据文件可以在Python模块pythondata_software_compiler_rt下找到。这个 pythondata_software_compiler_rt.data_location值可用于查找文件上的文件 系统。在

直接获取数据文件的例子

importpythondata_software_compiler_rtmy_data_file="abc.txt"withopen(os.path.join(pythondata_software_compiler_rt.data_location,my_data_file))asf:print(f.read())

使用litex.data.findAPI获取数据文件的示例

^{pr2}$

数据文件来自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文件

使用以下命令添加到Pythonrequirements.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

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java如何修复无法解析从未使用过的符号和变量的错误   java lucene搜索   java无法获取可用的提供程序解析程序   java问题使用引发SAXException的方法编译类   是否可以编辑抽象类?JAVA   java AppletViewer出现错误并试图加入计时器   基于java JNI的Android库,在没有NDK的情况下使用   Java如何使用Jenkins中的环境变量?   XMLHttpRequestJavaJavaScript   JPA实体中的java枚举类型字段   java泛型方法将一种枚举类型转换为另一种枚举类型   java Liveconnect小程序问题   java SpringBoost应用程序和Apache Ignite配置:启动ApplicationContext时出现问题   反射从Java8中的类对象获取方法引用   调试时Eclipse在java 8类加载器上中断