X-Git-Url: http://iramuteq.org/git?a=blobdiff_plain;f=checkinstall.py;h=17d32fd25cfbc7f522233df62d33a47f728c978a;hb=f436e6ce1870d34258291d4232f9b1d966741c31;hp=79973533813d185c4fd4750518f04bfdeaf67677;hpb=a1072a79076e10759eab1c10d443169f10e30cb7;p=iramuteq diff --git a/checkinstall.py b/checkinstall.py index 7997353..17d32fd 100644 --- a/checkinstall.py +++ b/checkinstall.py @@ -26,7 +26,6 @@ def IsNew(self): userab = False globab = False if version_user : - print len(version_user), len(version_glob) version_user[0] = int(version_user[0]) version_user[1] = int(version_user[1]) version_glob[0] = int(version_glob[0]) @@ -124,7 +123,7 @@ def FindRPAthWin32(): for progpath in progpaths : rpath = os.path.join(progpath, "R") if os.path.exists(rpath) : - for maj in range(2,4) : + for maj in range(2,6) : for i in range(0,30): for j in range(0,20): for poss in ['', 'i386', 'x64'] : @@ -139,6 +138,8 @@ def FindRPathNix(): BestPath='/usr/bin/R' elif os.path.exists('/usr/local/bin/R'): BestPath='/usr/local/bin/R' + elif os.path.exists('/Library/Frameworks/R.framework/Resources/bin/R') : + BestPath='/Library/Frameworks/R.framework/Resources/bin/R' return BestPath def RLibsAreInstalled(self) : @@ -149,7 +150,8 @@ def RLibsAreInstalled(self) : return True def CheckRPackages(self): - listdep = ['ca', 'rgl', 'gee', 'ape', 'igraph','proxy', 'wordcloud', 'irlba', 'textometry'] + listdep = ['ca', 'rgl', 'gee', 'ape', 'igraph','proxy', 'wordcloud', + 'irlba', 'textometry', 'intergraph', 'sna', 'network'] nolib = [] i=0 dlg = wx.ProgressDialog("Test des librairies de R", "test en cours...", maximum = len(listdep), parent=self, style=wx.PD_APP_MODAL | wx.PD_AUTO_HIDE | wx.PD_ELAPSED_TIME | wx.PD_CAN_ABORT) @@ -175,12 +177,12 @@ def CheckRPackages(self): %s Sans ces bibliothèques, IRamuteq ne fonctionnera pas. - + - Vous pouvez installer ces bibliothèques manuellement : Cliquez sur Annuler Lancez R Tapez install.packages('nom de la bibiothèque') - + - ou laisser IRamuteq les installer automatiquement en cliquant sur VALIDER . Les bibliothèques seront téléchargées depuis le site miroir de R %s. """ % (txt, self.pref.get('iramuteq','rmirror'))