Bonjour,
Depuis plusieurs semaines, quand jai le temps, je me penche sur le
développement dun paquet pour la dernière version de lapplication Scratch
2. Javais déjà exposé mon problème et Mr Hubert TOUVET mavait gentiment
proposé une manipulation à effectuer mais sans succès.
Je me suis relancé a corps perdu dans les lignes de codes ce matin et jai
enfin trouvé ce qui bloquait.
Lors de linstallation du MSI il manquait des fichiers dans le paquet WAPT.
Plusieurs fichier .git et surtout un fichier .gitmodules.
Hors comme Mr TOUVET me lavait annoncé une modification avait été incluse à
la sortie de la 1.2.3, mais elle navait pas résolue mon problème.
Avant la 1.2.3 plusieurs fonctions du common.py effectuaient une exclusion
sur lexpression régulière .git* donc sur tout les fichiers dont le nom
commence par .git ...
A la 1.2.3 cette exclusion a été modifié en .git et .gitignore. Donc
logiquement mes fichiers .git auraient toujours du être exclus mais pas mon
fichier .gitmodules. Hors cétait le cas !
Il savère quen fait la liste dexclusion fournie en argument aux fonctions
du common.py est supplantée par une variable globale contenue dans le
fichier wapt-get.py
qui elle contient toujours le .git* !!!
Jai donc modifié ce fichier pour nexclure que les .gitignore sur mon
serveur et jai recrée un paquet waptupgrade, et depuis mon paquet pour
Scratch 2 se déploie sans problème.
Jai remplacé la ligne 130 du fichier wapt-get.py par :
parser.add_option("-x","--excludes", dest="excludes",
default='.svn,.gitignore,*.pyc,*.dbg,src', help="Comma separated list of
files or directories to exclude for build-package (default: %default)")
Est-ce dû au fait que mon serveur WAPT tourne sur une windows server 2003 et
que donc le code python est interprété différemment que sur une machine
Linux ? je ne sais pas mais merci de prendre en compte cette modification
pour la prochaine MAJ J
Cordialement,
Anthony CHARLES
Informaticien
COLLEGE SAINT JEAN DE LA BARRE
159, rue de la Barre
49000 Angers
informatique.stjeandelabarre(a)orange.fr