构建系统

build.p的Python项目详细描述


生成.py

py是一个用python编写的简单构建系统。

只需创建一个包含以下内容的build.py

#!/usr/bin/python3importbuildbuild.main(__name__)classConfig(build.Config):# Put your options here# Defaults:# Default taskdefault='build'# Languages to build (lang/<lang>.py)languages=[]# Default output directoryout='out'# Whether to preserve output paths (src/dir/file.py -> out/dir/file.py or out/file.py)preserve_paths=True# Enable builtin tasks (build etc.)builtins=True# Or remove the class above and put your options here

然后调用./build.py -h
用法:build.py [-h] [-f FILE] [-o OUT] [task] [args [args ...]]

位置参数

OptionDescription
^{}The task that should be called
^{}The arguments for TASK

可选参数

ShortLongDescription
^{}^{}Show this help message and exit
^{}^{}The build configuration
^{}^{}The output directory

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

推荐PyPI第三方库


热门话题
java为什么clean glass fish管理控制台不工作?   java 3DES_ECB解密   classpath如何解决由以下原因引起的错误:java。lang.ClassNotFoundException   Junit 3.8中Junit 4的@RunWith注释的java等价物   获取URL时发生java Jsoup HTTP错误。进行申请后处理时,状态=403   使用href link,使用Javaservlet和hibernate从数据库中删除一行   从Get请求调用WebSocket的java   播放框架JavaRESTAPI示例   java将RxJava 1.1.5改编为反应堆堆芯3.1.0。M3   java在每个测试用例之后运行任务   Android上的java Google翻译API问题   JAVA木卫一。FileNotFoundException:从安卓下载GAE blob文件时   Java HttpClient:无法读取post请求中的json数据