pyeal
新的 Python 打包编译工具
包名称是python seal的意思
目录
快速开始
注意下方的python是你的Python, 正常情况下可以直接通过python调用, 而Maya的python一般是"C:\Program Files\Autodesk\<Maya版本>\bin\mayapy.exe"
安装
python -m pip install pyeal
如果你使用mayapy进行安装请注意以下几点:
- 请确认pip给你安装的位置是否在python的搜索路径下, 如果不存在可以在“pip install”后加“-t 目标路径” 来解决这个问题.
- 请确认pyeal.exe可以被命令行查找到, 它一般在pip给你安装的库的位置的../../Scripts下. 如果无法被找到请将其所在的目录添加到环境变量中.
- 如果出现第一次安装pyeal不会出现以上情况, 而第二次出现或者反过来.请按情况处理即可, 这只是python2、python3、maya、windows其中一个出现了未知的变化而已导致的更改而已.
- 建议打开管理员进行安装否则会安装到 “C:\Users\PC\AppData\Roaming\Python\Python27\site-packages”下, 这将导致库文件和普通的python2混合在一起.
- 如果出现了不在上述情况中的错误请提issue
初始化
mkdir test_pyeal
cd test_pyeal
python -m pyeal init
编译
python -m pyeal build
功能介绍
目前大部分操作都通过命令行调用, 依赖于pyeal.json配置功能.
配置
{
"type": "package",
"name": "your_name",
"exec_script": ""
}
配置的各项参数
- type[str]: 你要封装的类型目前仅支持package, maya-plugin.
- name[str]: 你要封装的名称, 一般作为名称空间或者名称前缀.
- imp_name[str]: 打包完成后的导入名称, 未填则为name的值.
- exec_script[str]: 启动脚本, 一般是导入某一个模块, 然后执行启动函数.
- annotation[str]: 注释字符串, 在构建类型为maya-plugin或其他可以添加注释的的编译类型的时候被使用.
- outer_lib[list(str)]: 额外的库目录.
文件约定
- icon.ico logo文件, 在构建类型为maya-plugin或其他需要图标的编译类型的时候被使用的文件.
- pyeal.json 构建配置文件.
- index.py 在编写复杂的启动脚本时, 替代exec_script配置项的文件.
- src/ 源代码目录.
- lib/ 依赖库目录.
- build/ 输出目录.
版权说明
该项目签署了Apache-2.0 授权许可, 详情请参阅 LICENSE
Metadata
Release files for pyeal 1.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyeal-1.0.6.tar.gz | 24.2 kB | Without provenance | Details for pyeal-1.0.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyeal-1.0.6-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for pyeal-1.0.6-py2.py3-none-any.whl |
Total release size: 50.5 kB
Release files / pyeal-1.0.6.tar.gz
| Download URL | pyeal-1.0.6.tar.gz |
|---|---|
| Size | 24.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6bfcaf0652be53112f3495a4c7fffe1e5614be48f00506a5af08cea7683223df
|
|
BLAKE2b-256 checksum How to use checksums |
003ecf3cff794c27f348341c0f51d6eb82d775e95ab9378322bd6c2375ce0d17
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.10
|
Release files / pyeal-1.0.6-py2.py3-none-any.whl
| Download URL | pyeal-1.0.6-py2.py3-none-any.whl |
|---|---|
| Size | 26.3 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
0e2f14bb611ee141de7173a8a9d02e803ce301d7d93b63f20c6eced012bb2192
|
|
BLAKE2b-256 checksum How to use checksums |
0e94cf53720cd44202fa8c745dfcaf33971af1ef7a728c8d467ef893946c68f7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.10
|
Security for pyeal 1.0.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.