Пример #1
0
    def finalize_options(self):
        "Set default values"
        install.finalize_options(self)

        # path to fred-nicms base folder (/usr/share/fred-nicms)
        if self.fredappdir is None:
            self.fredappdir = os.path.join(os.path.split(self.purepyappdir)[0], self.BASE_CMS_NAME)

        # path to path to fred-nicms settings modules folder
        # (/etc/fred/)
        if self.fredconfdir is None:
            # prepare conf_path
            base, folder_name = os.path.split(self.appconfdir)
            if folder_name == self.PACKAGE_NAME:
                self.fredconfdir = os.path.join(base, self.BASE_CMS_NAME)
            else:
                self.fredconfdir = self.appconfdir

        # path to path to fred-nicms settings modules folder
        # (/etc/fred/nicms_cfg_modules)
        if self.fredconfmoduledir is None:
            self.fredconfmoduledir = os.path.join(self.fredconfdir, self.BASE_CONFIG_MODULE_NAME)

        # can be same as fred_nicms or different:
        # share_dir:  '/usr/share/fred-nicms'
        # fred_nicms: '/usr/share/fred-nicms' or
        #             '/usr/local/lib/python2.5/site-packages/fred-nicms/'
        self.share_dir = os.path.join(self.getDir("DATADIR"), self.BASE_CMS_NAME)
        self.rootappconfdir = self.appconfdir

        # join root if is required
        if self.root and not self.preservepath:
            self.rootappconfdir = os.path.join(self.root, self.appconfdir.lstrip(os.path.sep))
Пример #2
0
 def finalize_options(self):
     install.finalize_options(self)
     if not self.context:
         self.context = 'fred'
     if not self.host:
         self.host = 'localhost:2809'
     if not self.idldir:
         self.idldir = os.path.join(self.datarootdir, 'idl', 'fred')
Пример #3
0
 def finalize_options(self):
     install.finalize_options(self)
     if not self.context:
         self.context = 'fred'
     if not self.host:
         self.host = 'localhost:2809'
     if not self.idldir:
         self.idldir = os.path.join(self.datarootdir, 'idl', 'fred')
Пример #4
0
 def finalize_options(self):
     install.finalize_options(self)
     if not self.host:
         self.host = 'localhost'
     if not self.port:
         self.port = '700'
     # if we create package for windows, we change patterns in postinstall process
     if not self.keeppatt and 'bdist_wininst' in self.distribution.commands:
         self.keeppatt = 1
Пример #5
0
 def finalize_options(self):
     install.finalize_options(self)
     if not self.host:
         self.host = 'localhost'
     if not self.port:
         self.port = '700'
     # if we create package for windows, we change patterns in postinstall process
     if not self.keeppatt and 'bdist_wininst' in self.distribution.commands:
         self.keeppatt = 1
Пример #6
0
    def finalize_options(self):
        "Set default values"
        install.finalize_options(self)

        # path to fred-nicms base folder (/usr/share/fred-nicms)
        if self.fredappdir is None:
            self.fredappdir = os.path.join(
                os.path.split(self.purepyappdir)[0], self.BASE_CMS_NAME)

        # path to path to fred-nicms settings modules folder
        # (/etc/fred/)
        if self.fredconfdir is None:
            # prepare conf_path
            base, folder_name = os.path.split(self.appconfdir)
            if folder_name == self.PACKAGE_NAME:
                self.fredconfdir = os.path.join(base, self.BASE_CMS_NAME)
            else:
                self.fredconfdir = self.appconfdir

        # path to path to fred-nicms settings modules folder
        # (/etc/fred/nicms_cfg_modules)
        if self.fredconfmoduledir is None:
            self.fredconfmoduledir = os.path.join(self.fredconfdir,
                                                  self.BASE_CONFIG_MODULE_NAME)

        # can be same as fred_nicms or different:
        # share_dir:  '/usr/share/fred-nicms'
        # fred_nicms: '/usr/share/fred-nicms' or
        #             '/usr/local/lib/python2.5/site-packages/fred-nicms/'
        self.share_dir = os.path.join(self.getDir('DATADIR'),
                                      self.BASE_CMS_NAME)
        self.rootappconfdir = self.appconfdir

        # join root if is required
        if self.root and not self.preservepath:
            self.rootappconfdir = os.path.join(
                self.root, self.appconfdir.lstrip(os.path.sep))
Пример #7
0
 def finalize_options(self):
     install.finalize_options(self)
     if not self.idldir:
         self.idldir = njoin(self.getDir('datarootdir'), 'idl', 'fred')
     
     self.idldir = self.idldir.rstrip('/') # remove trailing slash
Пример #8
0
 def finalize_options(self):
     install.finalize_options(self)
Пример #9
0
    def finalize_options(self):
        install.finalize_options(self)
        if not self.idldir:
            self.idldir = njoin(self.getDir('datarootdir'), 'idl', 'fred')

        self.idldir = self.idldir.rstrip('/')  # remove trailing slash
Пример #10
0
 def finalize_options(self):
     install.finalize_options(self)
     if not self.host:
         self.host = 'localhost'
     if not self.port:
         self.port = '700'