Franck Pommereau

fixed emacs dependency in setup.py

......@@ -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 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() :
......@@ -25,11 +25,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",
......