1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
#!/usr/bin/env python
# -*- coding: Latin-1 -*-
import sys
sys.path.insert(0, '.')
from Pymacs import __package__, __version__
del sys.path[0]
def update_version_texi():
import os, stat, time
edited = ('%.4d-%.2d-%.2d'
% time.localtime(os.stat('doc/pymacs.all')[stat.ST_MTIME])[:3])
version_texi = ('@set VERSION %s\n'
'@set EDITION %s\n'
'@set UPDATED %s\n'
% (__version__, edited, edited))
if open('doc/version.texi').read() != version_texi:
open('doc/version.texi', 'w').write(version_texi)
from distutils.core import setup
update_version_texi()
# If you want `Allout' installed, then add `scripts/allout' to the `scripts'
# list and `Allout' to the `packages' list.
setup(name=__package__, version=__version__,
description="Interface between Emacs LISP and Python.",
author='Franois Pinard', author_email='pinard@iro.umontreal.ca',
url='http://www.iro.umontreal.ca/~pinard',
scripts=['scripts/pymacs-services', 'scripts/rebox'],
packages=['Pymacs', 'Pymacs.Nn', 'Pymacs.Rebox'])
|