Skip to main content

Meta build system based on Ninja and Python

Project description

PyPI Version CII Best Practices

Note: Craftr 2.x is different from the initial Craftr version in many ways and can not be used interchangibly. The latest version of Craftr 1.x can be found under the v1.1.4-unreleased tag.

Craftr is a meta build system based on Python 3 scripts which produces Ninja build manifests. It enforces the use of modular build definitions that can be re-used easily. Craftr provides a standard library to support various programming languages and common libraries out of the box:

  • C/C++ (cURL, DLib, GoogleTest, GoogleBenchmark, tiny-dnn, Qt5, Boost, getopt)

  • Cython

  • C#

  • Java

  • Vala

Additional links:

Features

  • [x] Moduler build scripts (Craftr packages) with dependency management

  • [x] Loaders: if required, automatically download and build libraries from source!

  • [ ] Package manager (hosted on Craftr.net)

  • [ ] Embed actual Python functions into the build graph

  • [ ] Dependency-version lockfiles

Contributions

Craftr is a one-man-show and an immature piece of software. I am happy about every contribution and feedback, be it questions, criticism, feature requests, bug reports or pull requests!

I would love to see Craftr used by more people. If you think it’s worth to give it a shot, don’t hesitate to ask if you’re getting stuck!

Issue Tracker: https://github.com/craftr-build/craftr/issues Twitter: [@rosensteinn](twitter.com/rosensteinn) [@craftr_build](https://twitter.com/craftr_build)

Installation

Craftr 2.x does not have a stable release yet, though the 2.0.0.devx tags are already available on PyPI. If you do not explicitly specify the version number, Pip will install Craftr 1.x.

$ pip install craftr-build==2.0.0.dev5

To get the cutting edge development version, I suggest installing Craftr from the Git repository into a virtualenv.

$ virtualenv -p python3 env && source env/bin/activate
$ git clone https://github.com/craftr-build/craftr.git -b development
$ cd craftr
$ pip install -e .

Requirements

Python

License

The Craftr build system
Copyright (C) 2016  Niklas Rosenstein

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.

For more information, see the LICENSE.txt file.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

craftr-build-2.0.0.dev5.tar.gz (91.5 kB view details)

Uploaded Source

File details

Details for the file craftr-build-2.0.0.dev5.tar.gz.

File metadata

File hashes

Hashes for craftr-build-2.0.0.dev5.tar.gz
Algorithm Hash digest
SHA256 3ab3ad9f0fa4922616f88c7a14fe8f5d4bb9d98b6236d3fa20f0b6faae5dfb98
MD5 fdbfa9fb13c6fd9d76f9bdbd1b0ddc9a
BLAKE2b-256 993f81f5eafea9a84687f127641dfaacfb271102bf457a1470eae941d7b55320

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page