Franck Pommereau

merged new ABCD simulator

......@@ -13,6 +13,7 @@
.hgignore
.hgtags
BUGS
MANIFEST
MANIFEST.in
Makefile
NEWS
......@@ -97,3 +98,4 @@ snakes/utils/abcd/transform.py
snakes/utils/ctlstar/__init__.py
snakes/utils/ctlstar/build.py
utils/abcd-mode.el
utils/abcd-mode.elc
......
......@@ -9,10 +9,14 @@ all:
@echo " next-ppa increments debian/PPA"
@echo " lang build generated files in snakes/lang"
@echo " emacs compile Emacs files"
@echo " pip upload to PyPI"
committed:
hg summary|grep -q '^commit: (clean)$$'
pip:
python setup.py sdist bdist_wheel upload
next-deb:
echo 1 > debian/PPA
echo $$((1+$$(cat debian/VERSION))) > debian/VERSION
......
precise 12.04 LTS
saucy 13.10
......
#!/usr/bin/env python
import sys, os
import subprocess
from distutils.core import setup
def doc_files () :
......@@ -34,11 +34,13 @@ particular, plugins are provided to implement the operations
usually found in the PBC and M-nets family."""
if __name__ == "__main__" :
print("Compiling Emacs files...")
if os.system("emacs -batch -f batch-byte-compile utils/abcd-mode.el") :
try :
subprocess.check_output(["emacs", "-batch", "-f",
"batch-byte-compile", "utils/abcd-mode.el"],
stderr=subprocess.STDOUT)
emacs = [("share/emacs/site-lisp", ["utils/abcd-mode.el",
"utils/abcd-mode.elc"])]
else :
except :
emacs = [("share/emacs/site-lisp", ["utils/abcd-mode.el"])]
#
setup(name="SNAKES",
......