Franck Pommereau

merged new ABCD simulator

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