-
Notifications
You must be signed in to change notification settings - Fork 30
CelerID
Laeeth Isharc edited this page Mar 19, 2015
·
1 revision
CeleriD is an extension to Python's distutils, originally written by David Rushby. It extends distutils to know about the DMD, GDC, and LDC compilers. The following trivial example setup.py file is enough to compile a simple one-file extension module:
Compiling the module is a simple matter of running this:
The Python module celerid.support, when imported, hot-patches distutils to know about the D compiler. It also provides the following:
- **setup**:
- **Extension**:
- **version_flags**:
- **debug_flags**:
- **raw_only**:
- **with_pyd**:
- **with_main**:
- **build_deimos**:
- **optimize**:
- **d_lump**:
- **d_unittest**:
- **d_property**:
- **string_imports**:
Celerid provides the custom command 'pydexe' for building projects that embed python. Usage is similar to building extensions:
As with distutils, you can use the commandline switch:
Apparently you can't. This will change.