PyProd: More Makeable than Make
Project description
PyProd is a Python script that can be used as an alternative to Makefile. By leveraging Python’s versatility, it enables you to define build rules and dependencies programmatically, allowing for dynamic configurations, integration with existing Python libraries, and custom build logic not easily achievable with traditional Makefiles. For detailed documentation, please refer to the official documentation.
Features
Define build rules in Python: Use Python functions to create clear and concise build logic.
Specify dependencies for each rule: Automatically track and resolve dependencies between files, such as source files and headers.
Easily extendable with custom Python functions: Integrate custom logic for specialized tasks, like code linting or deployment.
Manages virtual environments: Automatically create and manage virtual environments for each project, ensuring a clean and isolated build environment.
Installation
To install PyProd, simply use pip:
pip install pyprod
Usage
With PyProd, a traditional Makefile for C can be expressed as a Python script like this:
CC = "gcc"
CFLAGS = "-I."
DEPS = "hello.h"
OBJS = "hello.o main.o".split()
@rule("%.o", depends=("%.c", DEPS))
def compile(target, src, *deps):
run(CC, "-c -o", target, src, CFLAGS)
@rule("hello.exe", depends=OBJS)
def link(target, *objs):
run(CC, "-o", target, objs)
def clean():
run("rm -f", OBJS, "hello.exe")
all = "hello.exe"
To run the build script, simply execute:
$ cd project
$ pyprod
License
PyProd is licensed under the MIT License. See the LICENSE file for more details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyprod-0.2.0.post1.tar.gz.
File metadata
- Download URL: pyprod-0.2.0.post1.tar.gz
- Upload date:
- Size: 415.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
67145fbc94164d6f02dd16c94fb6d7193694517b2df4ede6f4ea1cc541bc3158
|
|
| MD5 |
e70ac73157a16fbe62343bef0bcdda8a
|
|
| BLAKE2b-256 |
acd3202900e4127c62a0910297d94bab6bc8b80462e05b10eded87ef13acd511
|
Provenance
The following attestation bundles were made for pyprod-0.2.0.post1.tar.gz:
Publisher:
publish.yml on atsuoishimoto/pyprod
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyprod-0.2.0.post1.tar.gz -
Subject digest:
67145fbc94164d6f02dd16c94fb6d7193694517b2df4ede6f4ea1cc541bc3158 - Sigstore transparency entry: 158924470
- Sigstore integration time:
-
Permalink:
atsuoishimoto/pyprod@01a8e5a3717a100ec13cb6d93abc386e2f32988f -
Branch / Tag:
refs/tags/0.2.0.post1 - Owner: https://github.com/atsuoishimoto
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@01a8e5a3717a100ec13cb6d93abc386e2f32988f -
Trigger Event:
push
-
Statement type:
File details
Details for the file pyprod-0.2.0.post1-py3-none-any.whl.
File metadata
- Download URL: pyprod-0.2.0.post1-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d45d7ee36f92ba29c84432b925cab0d5a13a0c6d6698485a5795eab9a72697d4
|
|
| MD5 |
6126012217bd486c3e042e47a6041a2f
|
|
| BLAKE2b-256 |
89a7a11f695f569d0eaad791971af2c2fe37b72fd258bf1077a32dab5d1a5293
|
Provenance
The following attestation bundles were made for pyprod-0.2.0.post1-py3-none-any.whl:
Publisher:
publish.yml on atsuoishimoto/pyprod
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyprod-0.2.0.post1-py3-none-any.whl -
Subject digest:
d45d7ee36f92ba29c84432b925cab0d5a13a0c6d6698485a5795eab9a72697d4 - Sigstore transparency entry: 158924477
- Sigstore integration time:
-
Permalink:
atsuoishimoto/pyprod@01a8e5a3717a100ec13cb6d93abc386e2f32988f -
Branch / Tag:
refs/tags/0.2.0.post1 - Owner: https://github.com/atsuoishimoto
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@01a8e5a3717a100ec13cb6d93abc386e2f32988f -
Trigger Event:
push
-
Statement type: