Skip to content

Pymake3 is python3 port of pymake2. it provides automated build tasks and enormous flexibility, all without esoteric syntax constructs!

License

Notifications You must be signed in to change notification settings

shlomimatichin/Pymake3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is pymake3?

Python3 port of pymake3

build: PYTHONPATH=py ./make.py clean: PYTHONPATH=py ./make.py clean install: sudo pip3 install src/dist/pymake3-1.0.0-py3-none-any.whl

What is pymake2?

assets/images/pymake2-banner.png

Pymake2 is a tool for automating build tasks. It comes with ready-made templates for several different kinds of projects, allowing you to quickly set up portable build tasks. With pymake2, it becomes trivial to set up complex build tasks, doing everything from library and executable compilation to asset building and even deployment.

Getting Started

  1. Download and install Python 3.
  2. Start with one of the examples or template scripts, picking one relevant to your type of project.
  3. Modify the script as needed for your project. See the manual for instructions on how to do so.
  4. Build your project by running your make script. You can either type python your_make_file.py or ./your_make_file.py (only on Linux).

Prerequisites

Installation

Begin by downloading and installing Python 3.

On Linux, depending on your distribution, Python comes pre-installed. This means that you do not need to install anything for pymake2 to work. If you don't have Python (you can check by typing python in a terminal), you might be able to install it by typing sudo apt-get install python.

On Windows, you need to install Python manually. See this link for more information.

Download the latest pymake2 release.

The latest pymake2 scripts are always available here. Download and save pymake2.py along with any make script you need for your project.

Usage

To familiarize yourself with pymake2, you can begin by writing a simple make script. You could also use one of the example scripts, or the one below if you just want to try out pymake2 quickly. In case you use the script below, make sure to put pymake2 in the same directory.

#!/usr/bin/env python
from pymake3 import *

@target
@depends_on('build', 'compile')
def all(conf):
    print 'done.'

@target
def build(conf):
    print 'building', conf.name + '...'

@target
def compile(conf):
    print 'compiling...'

pymake3({ 'name': 'some_program.bin' })

Since pymake2 scripts are written in Python, there is really no limit to what can be done. This allows you to easily create very complex and secure build and deployment scripts for your projects.

Build your project.

Save your script in a file named make.py in your project directory. Make sure you have installed pymake2 into the build directory (this is the standard directory, but can always be changed if needed). Invoke your make script by running it with the following command: python make.py

Running the Tests

Run the tests by typing python runtests.py in the src/tests directory. All tests in the tests directory will be built and run automatically, ending with a report of passing and failing tests, as well as how much time it took to run them.

Deployment

Deploying pymake2 make scripts is easy! You only need to store a copy of pymake2 and your make script in the project directory.

Deploying make scripts

Along with your make.py file containing your make logic, you need to store the pymake2 file in your project. Normally, pymake2 should be stored in a directory named build in your project's root.

Built With

  • Emacs - Emacs is, along with vi, one of the two main contenders in the traditional editor wars of Unix culture. Both are among the oldest application programs still in use.
  • Python - A widely used high-level, general-purpose, interpreted, dynamic programming language.

Contributing

Please read CONTRIBUTING.rst for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License—see the LICENSE file for details.

Acknowledgments

n/a

About

Pymake3 is python3 port of pymake2. it provides automated build tasks and enormous flexibility, all without esoteric syntax constructs!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages