| Revision 229,
745 bytes
checked in by xi, 7 years ago
(diff) |
|
Fix makefile and add setup.cfg.
|
| Line | |
|---|
| 1 | |
|---|
| 2 | .PHONY: default build buildext force forceext install installext test testext dist clean |
|---|
| 3 | |
|---|
| 4 | PYTHON=/usr/bin/python |
|---|
| 5 | TEST= |
|---|
| 6 | PARAMETERS= |
|---|
| 7 | |
|---|
| 8 | build: |
|---|
| 9 | ${PYTHON} setup.py build ${PARAMETERS} |
|---|
| 10 | |
|---|
| 11 | buildext: |
|---|
| 12 | ${PYTHON} setup_with_libyaml.py build ${PARAMETERS} |
|---|
| 13 | |
|---|
| 14 | force: |
|---|
| 15 | ${PYTHON} setup.py build -f ${PARAMETERS} |
|---|
| 16 | |
|---|
| 17 | forceext: |
|---|
| 18 | ${PYTHON} setup_with_libyaml.py build -f ${PARAMETERS} |
|---|
| 19 | |
|---|
| 20 | install: build |
|---|
| 21 | ${PYTHON} setup.py install ${PARAMETERS} |
|---|
| 22 | |
|---|
| 23 | installext: buildext |
|---|
| 24 | ${PYTHON} setup_with_libyaml.py install ${PARAMETERS} |
|---|
| 25 | |
|---|
| 26 | test: build |
|---|
| 27 | ${PYTHON} tests/test_build.py ${TEST} |
|---|
| 28 | |
|---|
| 29 | testext: buildext |
|---|
| 30 | ${PYTHON} tests/test_build_ext.py ${TEST} |
|---|
| 31 | |
|---|
| 32 | dist: |
|---|
| 33 | ${PYTHON} setup.py sdist --formats=zip,gztar |
|---|
| 34 | |
|---|
| 35 | windist: |
|---|
| 36 | ${PYTHON} setup.py bdist_wininst |
|---|
| 37 | |
|---|
| 38 | clean: |
|---|
| 39 | ${PYTHON} setup.py clean -a |
|---|
Note: See
TracBrowser
for help on using the repository browser.