构建系统

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如何使用JPA从1自动生成id?   java JSONException:CourseVide没有值   在Java中使用身份和访问管理   java观察者设计如何访问方法。调用范围?   试图从Java源代码调用JavaScript函数   java How to Fix无法解析Android中的方法“setContentView”   java如何从非结构化日志文件中提取json字符串?   将java布尔结果转换为字符串值   java无法调试servlet Eclipse+Glassfish   java是检查布尔值数组是否包含true的最快方法   java JFrame不会显示在ubuntu上   面向Web应用的javascript图像编辑   使用Hadoop自定义数据类型biginsghts时出现java EOF异常   选择尽可能多的非重叠段时超出了java时间限制   从Firebase获取数据列表并在不同活动/片段中共享的java最佳实践   使用SimpleCursorAdapter时出现java空指针异常   java以升序将元素插入到多链接列表中   支持TDD的java Eclipse插件   客户端无法从Java代码向服务器发送命令