Skip to main content

A python library for writing C/C++ configure files.

Project description

While trying to grasp autoconf for the first time, I realized that I could do everything I wanted in Python, and so I started doing that instead.

This is the earliest of the earliest of early stages, but for absolute basic system testing functionality, it does work.

#!/usr/bin/env python
# Filename: configure
import ac

ac.test("testname, testfunc())
ac.testlib("somelib")
ac.testheader("someheader.h")

$ ./configure --shell=bash --compiler=g++ --yes

AC.py also offers (well, plans to offer, but the syntax is supported now), ‘alternatives’, which allows you to define how to handle failed tests depending on your user’s platform:

ac.if_fail("testname", ("debian","ubuntu"), "sudo apt-get install somepkg")
ac.if_fail("testname", ("rehat","centos","fedora"), "sudo yum install somepkg")

Future plans include variable substitution like autoconf has with .in files.

It’s nowhere near ready at this time, but I wanted to make sure that ‘ac’ could be the actual package name, because it’s easy to remember and looks familiar to anyone who is used to autoconf files.

For now, refer to ac.py docstrings for documentation. More will come later!

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

ac-0.2-alpha.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

ac-0.2_alpha-py2.7.egg (11.7 kB view details)

Uploaded Source

File details

Details for the file ac-0.2-alpha.tar.gz.

File metadata

  • Download URL: ac-0.2-alpha.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ac-0.2-alpha.tar.gz
Algorithm Hash digest
SHA256 b4dcfefaa5f9f8eec10491a465cdcd5f8ba7f9adc2eeaf29a7f02503aca9145e
MD5 259ff2862b7aaee35dd385c306922e74
BLAKE2b-256 62691554f20baea8b000b20081f815841c3f7a1a80892523df63269163be0755

See more details on using hashes here.

File details

Details for the file ac-0.2_alpha-py2.7.egg.

File metadata

  • Download URL: ac-0.2_alpha-py2.7.egg
  • Upload date:
  • Size: 11.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ac-0.2_alpha-py2.7.egg
Algorithm Hash digest
SHA256 550ff28f28f60bbc9ef69f32744866a1de11751c9029a87262b3d647091dba48
MD5 e21fc13f02585d8294d9da4766c2334e
BLAKE2b-256 24dade717c66c6ebd55eb485fa18a8ef66d45bd6629a4e42e7989859b0413dd3

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