Project

General

Profile

Revision 1ff8c312

ID1ff8c3128f3aa0024f11689fb0b236062442b2ee
Parent 99ca00de
Child 70f9baac

Added by Francois POIROTTE about 11 years ago

Modif buildenv pour packaging Debian.

Sous Debian, setuptools a été patché afin que les fichiers Python soient
installés dans un dossier séparé lorsqu'ils proviennent d'un package.

Cette modification permet de prendre cette spécificté en compte de
manière globale, tout en gardant la compatibilité avec les distributions
qui n'ont pas ce patch.

Le patch ajoute une variable $(SETUP_PY_OPTS) qui doit être ajoutée dans
le Makefile du composant au niveau de la cible d'installation utilisant
le fichier setup.py.

Change-Id: Id584eef7a56f049e83434c3fe0a9f36429171d19
Reviewed-on: https://vigilo-dev.si.c-s.fr/review/1171
Reviewed-by: Francois POIROTTE <>
Tested-by: Francois POIROTTE <>

View differences:

Makefile
25 25
install_python: $(PYTHON) $(SUBST_FILES)
26 26
	$(PYTHON) setup.py install --record=INSTALLED_FILES
27 27
install_python_pkg: $(PYTHON)
28
	$(PYTHON) setup.py install --single-version-externally-managed --root=$(DESTDIR) --record=INSTALLED_FILES
28
	$(PYTHON) setup.py install --single-version-externally-managed \
29
		$(SETUP_PY_OPTS) --root=$(DESTDIR) --record=INSTALLED_FILES
29 30

  
30 31
install_data: $(SUBST_FILES)
31 32
	# Permissions de la conf

Also available in: Unified diff