Commit 0c6d42b1 authored by Filippos Giannakos's avatar Filippos Giannakos

Add archipelago devflow version

parent 51886667
xseg/tools/archipelago/archipelago/version.py
[ packages ]
[[ archipelago_tools ]]
version_file = "xseg/tools/archipelago/archipelago/version.py"
[[ archipelago ]]
version_file = ""
......@@ -11,6 +11,8 @@ EFILES+="xseg-domain-targets"
SUBDIR:=$(subst $(XSEG_HOME),,$(CURDIR))
default:
make -C archipelago
make -C ext_scripts
clean:
make -C archipelago clean
......
......@@ -41,14 +41,19 @@ FILES+=$(shell ls *.py)
SUBDIR:=$(subst $(XSEG_HOME),,$(CURDIR))
default:
if [ ! -e archipelago/version.py ] ; then \
echo '__version__ = "'`devflow-version python`'"' > archipelago/version.py ; \
fi
python setup.py build
clean:
rm -r build/
rm -r python_archipelago.egg-info/
install:
# mkdir p $(DESTDIR)$(pythondir)
# cp -r xseg $(DESTDIR)$(pythondir)
if [ ! -e archipelago/version.py ] ; then \
echo '__version__ = "'`devflow-version python`'"' > archipelago/version.py ; \
fi
python setup.py install --install-layout=deb --root=$(DESTDIR)
install-src:
......@@ -60,5 +65,6 @@ install-src:
install -o 0 -g 0 -m 644 -t $(DESTDIR)$(srcdir)$(SUBDIR)/archipelago archipelago/__init__.py ;
install -o 0 -g 0 -m 644 -t $(DESTDIR)$(srcdir)$(SUBDIR)/archipelago archipelago/archipelago.py ;
install -o 0 -g 0 -m 644 -t $(DESTDIR)$(srcdir)$(SUBDIR)/archipelago archipelago/vlmc.py ;
install -o 0 -g 0 -m 644 -t $(DESTDIR)$(srcdir)$(SUBDIR)/archipelago archipelago/version.py ;
......@@ -41,12 +41,13 @@ from distutils.util import convert_path
from fnmatch import fnmatchcase
from setuptools import setup, find_packages
HERE = os.path.abspath(os.path.normpath(os.path.dirname(__file__)))
DEBIANDIR = os.path.join(HERE, '../../../../debian');
#HERE = os.path.abspath(os.path.normpath(os.path.dirname(__file__)))
TOPDIR = os.environ['TOPDIR']
DEBIANDIR = os.path.join(TOPDIR, 'debian');
DEBIANDIR = os.path.normpath(DEBIANDIR)
VERSION = os.environ['VERSION']
from archipelago.version import __version__
VERSION = __version__
# Package info
if os.path.isdir(DEBIANDIR):
README = open(os.path.join(DEBIANDIR, 'README')).read()
......@@ -64,7 +65,7 @@ PACKAGES = find_packages(PACKAGES_ROOT)
CLASSIFIERS = []
# Package requirements
INSTALL_REQUIRES = ['xseg'
INSTALL_REQUIRES = ['python-xseg'
]
EXTRAS_REQUIRES = {
......@@ -193,8 +194,8 @@ setup(
entry_points = {
'console_scripts': [
'archipelago = archipelago.cli',
'vlmc = archipelago.cli',
'archipelago = archipelago.archipelago:cli',
'vlmc = archipelago.archipelago:cli',
],
}
)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment