PyMake is a simple, Python-based build system designed to simplify the process of compiling and running C++ projects. It provides an intuitive API for configuring your build process and executing compiled programs.
Project description
PyMake
PyMake is a simple, Python-based build system designed to simplify the process of compiling and running C++ projects. It provides an intuitive API for configuring your build process and executing compiled programs.
Features
- Easy-to-use Python API for build configuration
- Support for multiple source files and directories
- Include directory management
- Macro definitions
- Library linking and path configuration
- Compiler, linker, assembler, and preprocessor flag customization
- Verbose output option for debugging
- Flexible output directory setting
- Run compiled programs with custom arguments and environment variables
Installation
To install PyMake, you can use pip:
pip install git+https://github.com/fresh-milkshake/pymake.git
Usage
Here's a simple example to get you started:
from pymake import *
add_sources_directory("src")
add_includes_directory("inc")
set_verbose(True)
build(compiler="g++")
run()
This script will compile all the source files in the src directory, link them into an executable, and then run the executable.
Documentation
For more details on the API and its usage, please refer to the documentation.
License
This project 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 mypymake-0.1.5.tar.gz.
File metadata
- Download URL: mypymake-0.1.5.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
853b33b3a7aa9cff190192569f4d2ec36d031177fb1cbd154b5500ea05a9d59f
|
|
| MD5 |
e21e2537f1c984540b8262bf7e505d4f
|
|
| BLAKE2b-256 |
271054ee530a3ddfc61d100ab93ff59e9ab862d9ccdee12db0e58eb51098fce5
|
File details
Details for the file mypymake-0.1.5-py3-none-any.whl.
File metadata
- Download URL: mypymake-0.1.5-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f28e05db27aea9332248efe9dbd5c1b199596cf7902d6d255989b0b3f80da507
|
|
| MD5 |
b03d5c2eb2dc42e5ca7d5601b91aea8c
|
|
| BLAKE2b-256 |
c0f54856cd20be5bab7e01895a72a96b075659f019eaddf57f66281c84549f71
|