Ejemplo n.º 1
0
	def do_install(self):

		#/##################/#
		# First analyze all the modules
		#

		"""
		#folder
		self.folder(
				InstallingSysFolderPathStr
			)

		#Definition
		self.file(
			'setup.py',
			_ModeStr='r'
		)
		"""
		
		#chunk to set the InstalledModuleStrsList
		if len(self.InstallingModuleStrsList)==0:
			self.InstallingModuleStrsList=SYS.lib()

		#debug
		'''
		self.debug(('self.',self,['InstallingModuleStrsList']))
		'''
		
		#map
		self.InstalledModulePathStrsList=map(
			lambda __InstallingModuleStr:
			__InstallingModuleStr.replace('.','/'),
			self.InstallingModuleStrsList
		)

		#debug
		'''
		self.debug(('self.',self,['InstalledModulePathStrsList']))
		'''
		
		#set with all the NameStrs
		self.InstalledNameStrsList=map(
					lambda __InstalledModulePathStr:
					__InstalledModulePathStr.split('/')[-1],
					self.InstalledModulePathStrsList
			)
#<ImportSpecificModules>
import collections
import os
import copy
import sys
from ShareYourSystem.Standards.Classors import Doer
from ShareYourSystem.Standards.Guiders import Celler
#</ImportSpecificModules>

#<DefineLocals>
DocumentOntologyLocalFolderPathStr=SYS.ShareYourSystemLocalFolderPathStr+'Ouvaton/'
DocumentNbviewerLocalFolderPathStr=SYS.ShareYourSystemLocalFolderPathStr+'Ouvaton/'
DocumentDocumentLocalFolderPathStr=SYS.ShareYourSystemLocalFolderPathStr+'docs/LibraryReference/'
DocumentOntologyOuvatonFolderPathStr='/httpdocs/slides/'
DocumentNbviewerOuvatonFolderPathStr='/httpdocs/ipython/'
DocumentModuleStrsList=SYS.lib()
DocumentModulePathStrsList=map(
	lambda __DocumentModuleStr:
	__DocumentModuleStr.replace('.','/'),
	DocumentModuleStrsList
)
DocumentNameStrsList=map(
	lambda __DocumentModulePathStr:
	__DocumentModulePathStr.split('/')[-1],
	DocumentModulePathStrsList
)
#</DefineLocals>

#<DefineFunctions>
def getDocumentedReadmeInstanceVariableWithFolderPathStr(
		_InstanceVariable,_FolderPathStr