Beispiel #1
0
    def __init__(self, attrs=None):
        Distribution.__init__(self, attrs)
        self.use_cython = None
        self.profile = False
        self.blas_lib = None
        self.lapack_lib = None
        self.library_dirs = None
        if not self.ext_modules:
            self.ext_modules = []

        # it is better to define command classes here, so it available in --help text
        self.cmdclass['test'] = test
        self.cmdclass['build_prepare'] = build_prepare

        self.global_options += [
            ('use-cython=', None, "use Cython to make faster binary python modules (choices: "
             + "yes/no; default: autodetect)"),
            ('profile=', None, 'embed profiling information into Cython build (choices: '
             + 'yes/no; default: no)'),

            # cython-build specific options
            ('blas-lib=', None,
             'library name that provides cblas_sswap function, without lib prefix [default: pkg-config --libs cblas  or "cblas"]'),
            ('lapack-lib=', None,
             'library name that provides clapack_sgetri function, without lib prefix [default: pkg-config --libs lapack  or "lapack"]'),
            ('library-dirs=', 'L',
             'list of additional directories where libraries are seached for, separated by '
             + '{0} character [default: try pkg-config  or none]'.format(os.pathsep)),
        ]
 def __init__(self, attrs):
     self.po = None
     self.appdata = None
     self.appmodules = None
     self.links = None
     self.configurable = None
     Distribution.__init__(self, attrs)
 def __init__(self, attrs):
     self.po = None
     self.appdata = None
     self.appmodules = None
     self.links = None
     self.configurable = None
     Distribution.__init__(self, attrs)
Beispiel #4
0
    def __init__(self, attrs=None):
        self.cobitools3 = attrs['cobitools3']

        ori_Distribution.__init__(self, attrs)

        self.global_options.insert(
            0, ('cobitools3', None, "intall location of the C library"))
Beispiel #5
0
    def __init__(self, attrs):
        try:
            os.remove("prewikka/siteconfig.py")
        except:
            pass

        self.conf_files = [ ]
        Distribution.__init__(self, attrs)
Beispiel #6
0
    def __init__(self, attrs):
        try:
            os.remove("prewikka/siteconfig.py")
        except:
            pass

        self.conf_files = {}
        self.closed_source = os.path.exists("PKG-INFO")
        Distribution.__init__(self, attrs)
Beispiel #7
0
 def __init__(self, attrs):
     self.cflags = None  # Default CFLAGS overridable by setup.cfg
     self.ldflags = None  # Default LDFLAGS overridable by setup.cfg
     self.ext_options = None
     Distribution.__init__(self, attrs)
     self.cmdclass['build_py'] = build_py
     self.cmdclass['build_ext'] = build_ext
     self.cmdclass['test'] = test
     self.modules_to_cythonize = set()
Beispiel #8
0
 def __init__(self, attrs = None):
     #It's important to define opotions before to call __init__
     #otherwise AttributeError: UsageDistribution instance has no attribute 'conf_files'
     self.conf_files = None
     self.doc_files = None
     self.fix_prefix = None
     self.fix_conf = None
     Distribution.__init__(self, attrs = attrs)
     self.common_usage = """\
Beispiel #9
0
 def __init__(self, attrs=None):
     Distribution.__init__(self, attrs)
     self.cmdclass = {
         'config': config,
         'build_ext': build_ext,
         'sdist': sdist,
         'docs': sphinx_build,
         'clean': clean,
     }
Beispiel #10
0
    def __init__(self, attrs):
        try:
            os.remove("prewikka/siteconfig.py")
        except:
            pass

        self.conf_files = [ ]
        self.closed_source = os.path.exists("PKG-INFO")
        Distribution.__init__(self, attrs)
Beispiel #11
0
 def __init__(self, attrs=None):
   Distribution.__init__(self, attrs)
   self.cmdclass = {
     'config': config,
     'build_ext': build_ext,
     'sdist': sdist,
     'docs': sphinx_build,
     'clean': clean,
   }
Beispiel #12
0
 def __init__(self, attrs=None):
     if sys.platform == "win32":
         self.executables = []
     self.mandir = "share/man"
     self.with_aeidon = True
     self.with_gaupol = True
     self.with_iso_codes = True
     distribution.__init__(self, attrs)
     self.data_files = []
     self.packages = []
     self.scripts = []
Beispiel #13
0
 def __init__(self, attrs=None):
     if sys.platform == "win32":
         self.executables = []
     self.mandir = "share/man"
     self.with_aeidon = True
     self.with_gaupol = True
     self.with_iso_codes = True
     distribution.__init__(self, attrs)
     self.data_files = []
     self.packages = []
     self.scripts = []
Beispiel #14
0
 def __init__(self, attrs=None):
     self.source_dir = source_dir_default
     self.netsa_version_files = []
     self.netsa_doc_dir = None
     self.netsa_unit_test_modules = []
     self.netsa_other_test_modules = []
     self.netsa_extra_globs = []
     self.netsa_unit_tests = []
     self.netsa_other_tests = []
     self.netsa_copyright = ""
     self.netsa_dist_funcs = []
     Distribution.__init__(self, attrs=attrs)
Beispiel #15
0
 def __init__(self, attrs = None):
     #It's important to define opotions before to call __init__
     #otherwise AttributeError: UsageDistribution instance has no attribute 'conf_files'
     #self.conf_files = None
     #self.doc_files = None
     self.fix_prefix = None
     self.fix_scripts = None
     #self.fix_conf = None
     self.uninstall_prefix = os.path.join(os.path.dirname(__file__), "uninstall.cfg")
     self.uninstall_files = os.path.join(os.path.dirname(__file__), "uninstall_files")
     Distribution.__init__(self, attrs=attrs)
     self.common_usage = """\
Beispiel #16
0
    def __init__(self, attrs=None):
        self.srcdir = os.path.normpath(attrs['srcdir'])
        self.rundir = attrs.get('rundir', os.getcwd())
        self.requires = None

        # a structure for modification of files:
        # {filename: callback, ...}
        self.modify_files = {}

        self.i18n_files = None
        self.scss_files = None

        _Distribution.__init__(self, attrs)
Beispiel #17
0
    def __init__(self, attrs=None):
        self.srcdir = None
        self.rundir = None
        self.requires = None
        
        # a structure for modification of files:
        # {"command": (("module.function", ("filename", ...)), ...), ...}
        self.modify_files = {}

        self.cmdclass = {}
        _Distribution.__init__(self, attrs)

        if not self.cmdclass.get('config'):
            self.cmdclass['config'] = config
        if not self.cmdclass.get('build'):
            self.cmdclass['build'] = build
        if not self.cmdclass.get('build_scripts'):
            self.cmdclass['build_scripts'] = build_scripts
        if not self.cmdclass.get('build_py'):
            self.cmdclass['build_py'] = build_py
        if not self.cmdclass.get('install'):
            self.cmdclass['install'] = install
        if not self.cmdclass.get('install_data'):
            self.cmdclass['install_data'] = install_data
        if not self.cmdclass.get('install_scripts'):
            self.cmdclass['install_scripts'] = install_scripts
        if not self.cmdclass.get('install_lib'):
            self.cmdclass['install_lib'] = install_lib
        if not self.cmdclass.get('install_egg_info'):
            self.cmdclass['install_egg_info'] = install_egg_info
        if not self.cmdclass.get('sdist'):
            self.cmdclass['sdist'] = sdist
        if not self.cmdclass.get('bdist'):
            self.cmdclass['bdist'] = bdist
        if not self.cmdclass.get('bdist_rpm'):
            self.cmdclass['bdist_rpm'] = bdist_rpm
        if not self.cmdclass.get('bdist_deb'):
            self.cmdclass['bdist_deb'] = bdist_deb
        if not self.cmdclass.get('bdist_wininst'):
            self.cmdclass['bdist_wininst'] = bdist_wininst
        # if not self.cmdclass.get('bdist_dumb'):
            # self.cmdclass['bdist_dumb'] = bdist_dumb
        if not self.cmdclass.get('bdist_simple'):
            self.cmdclass['bdist_simple'] = bdist_simple
        if not self.cmdclass.get('clean'):
            self.cmdclass['clean'] = clean
        if not self.cmdclass.get('uninstall'):
            self.cmdclass['uninstall'] = uninstall
        
        self.global_options.append(("fred-distutils-dir=", None,
                                    "Path to freddist module."))
Beispiel #18
0
    def __init__(self, attrs=None):
        self.srcdir = None
        self.rundir = None
        self.requires = None

        # a structure for modification of files:
        # {"command": (("module.function", ("filename", ...)), ...), ...}
        self.modify_files = {}

        self.cmdclass = {}
        _Distribution.__init__(self, attrs)

        if not self.cmdclass.get('config'):
            self.cmdclass['config'] = config
        if not self.cmdclass.get('build'):
            self.cmdclass['build'] = build
        if not self.cmdclass.get('build_scripts'):
            self.cmdclass['build_scripts'] = build_scripts
        if not self.cmdclass.get('build_py'):
            self.cmdclass['build_py'] = build_py
        if not self.cmdclass.get('install'):
            self.cmdclass['install'] = install
        if not self.cmdclass.get('install_data'):
            self.cmdclass['install_data'] = install_data
        if not self.cmdclass.get('install_scripts'):
            self.cmdclass['install_scripts'] = install_scripts
        if not self.cmdclass.get('install_lib'):
            self.cmdclass['install_lib'] = install_lib
        if not self.cmdclass.get('install_egg_info'):
            self.cmdclass['install_egg_info'] = install_egg_info
        if not self.cmdclass.get('sdist'):
            self.cmdclass['sdist'] = sdist
        if not self.cmdclass.get('bdist'):
            self.cmdclass['bdist'] = bdist
        if not self.cmdclass.get('bdist_rpm'):
            self.cmdclass['bdist_rpm'] = bdist_rpm
        if not self.cmdclass.get('bdist_deb'):
            self.cmdclass['bdist_deb'] = bdist_deb
        if not self.cmdclass.get('bdist_wininst'):
            self.cmdclass['bdist_wininst'] = bdist_wininst
        # if not self.cmdclass.get('bdist_dumb'):
        # self.cmdclass['bdist_dumb'] = bdist_dumb
        if not self.cmdclass.get('bdist_simple'):
            self.cmdclass['bdist_simple'] = bdist_simple
        if not self.cmdclass.get('clean'):
            self.cmdclass['clean'] = clean
        if not self.cmdclass.get('uninstall'):
            self.cmdclass['uninstall'] = uninstall

        self.global_options.append(
            ("fred-distutils-dir=", None, "Path to freddist module."))
Beispiel #19
0
    def __init__(self, attrs):
        # Set keywords and options
        self.validate_keywords(attrs)
        self.set_keywords(attrs)
        self.validate_options(attrs)
        self.set_options(attrs)

        # Initialize base class
        _Distribution.__init__(self, attrs)

        # Replace distutils commands
        self.cmdclass['clean'] = clean
        self.cmdclass['build_ext'] = build_ext
        self.cmdclass['py2exe'] = py2exe
Beispiel #20
0
    def __init__(self, attrs=None):
        self.protodirs = []
        self.cleandirectories = []
        self.cleansuffixes = ['_pb2.py', '_pb2_grpc.py', '.pyc']
        cmdclass = attrs.get('cmdclass')
        if not cmdclass:
            cmdclass = {}

        if 'build_py' not in cmdclass:
            cmdclass['build_py'] = DynaBuildPy
        if 'clean' not in cmdclass:
            cmdclass['clean'] = DynaClean

        attrs['cmdclass'] = cmdclass
        Distribution.__init__(self, attrs)
Beispiel #21
0
 def __init__(self, attrs=None):
     self.modules_check = 0
     self.gconf = 1
     self.msg_sources = None
     self.translations = []
     self.name = attrs.get('name')
     Distribution.__init__(self, attrs)
     self.cmdclass = {
         'install': l10napp_install,
         'install_mo': install_mo,
         'build': l10napp_build,
         'build_mo': build_mo,
         'build_conf': build_conf,
         'build_ext': BuildExt,
     }
Beispiel #22
0
    def __init__(self, attrs=None):
        given_attrs = {}
        # We need to remove the attrs so that Distribution.__init__ doesn't
        # warn about them.
        if attrs:
            for attr in self.conda_attrs:
                if attr in attrs:
                    given_attrs[attr] = attrs.pop(attr)

        if not PY3:
            # Distribution is an old-style class in Python 3
            Distribution.__init__(self, attrs)
        else:
            super().__init__(attrs)

        for attr in self.conda_attrs:
            setattr(self.metadata, attr, given_attrs.get(attr, self.conda_attrs[attr]))
Beispiel #23
0
    def __init__(self, attrs=None):
        given_attrs = {}
        # We need to remove the attrs so that Distribution.__init__ doesn't
        # warn about them.
        if attrs:
            for attr in self.conda_attrs:
                if attr in attrs:
                    given_attrs[attr] = attrs.pop(attr)

        if not PY3:
            # Distribution is an old-style class in Python 3
            Distribution.__init__(self, attrs)
        else:
            super().__init__(attrs)

        for attr in self.conda_attrs:
            setattr(self.metadata, attr, given_attrs.get(attr, self.conda_attrs[attr]))
Beispiel #24
0
    def __init__(self, attrs=None):
        Distribution.__init__(self, attrs)
        self.use_cython = None
        self.profile = False
        if not self.ext_modules:
            self.ext_modules = []

        # it is better to define command classes here, so they are available in --help text
        self.cmdclass['test'] = test
        self.cmdclass['stress'] = stress
        self.cmdclass['build_prepare'] = build_prepare
        self.cmdclass['build_py'] = build_py

        self.global_options += [
            ('use-cython=', None, "use Cython to make faster binary python modules (choices: "
             + "yes/no; default: autodetect)"),
            ('profile=', None, 'embed profiling information into Cython build (choices: '
             + 'yes/no; default: no)'),
        ]
Beispiel #25
0
    def __init__(self, attrs = None):
        self.modules_check = 0
        self.gconf = 1
        self.msg_sources = None
        self.pot_file = None
        self.translations = []
        self.config_files = []
        self.desktop_file = 'gourmet.desktop'
        Distribution.__init__(self, attrs)
        self.cmdclass = {
            'build_desktop': build_desktop,
            'install' : gourmet_install,
            'install_modules_check' : install_modules_check,
            'install_config' : install_config,
#            'install_mo' : install_mo,
            'install_gconf' : install_gconf,
            'install_desktop' : install_desktop,
#            'build_mo' : build_mo,
            'translate' : translate,}
Beispiel #26
0
 def __init__(self, attrs = None):
     self.modules_check = 0
     self.gconf = 1
     self.msg_sources = None
     self.pot_file = None
     self.translations = []
     self.config_files = []
     self.desktop_file = ['gnome-sudoku.desktop']
     Distribution.__init__(self, attrs)
     self.cmdclass = {
         'install' : gnome_sudoku_install,
         'install_modules_check' : install_modules_check,
         'install_config' : install_config,
         'install_mo' : install_mo,
         'install_gconf' : install_gconf,
         'install_desktop' : install_desktop,
         'build' : gnome_sudoku_build,
         'build_mo' : build_mo,
         'translate' : translate,
         'build_desktop': build_desktop}
 def __init__(self, attrs=None):
     self.modules_check = 0
     self.gconf = 1
     self.msg_sources = None
     self.pot_file = None
     self.translations = []
     self.config_files = []
     self.desktop_file = None
     Distribution.__init__(self, attrs)
     self.cmdclass = {
         "install": straw_install,
         "install_modules_check": install_modules_check,
         "install_config": install_config,
         "install_mo": install_mo,
         "install_gconf": install_gconf,
         "install_desktop": install_desktop,
         "build": straw_build,
         "build_mo": build_mo,
         "translate": translate,
         "build_desktop": build_desktop,
         "build_ext": BuildExt,
     }
Beispiel #28
0
    def __init__(self, attrs=None):
        Distribution.__init__(self, attrs)
        self.use_cython = None
        self.profile = False
        self.blas_lib = None
        self.lapack_lib = None
        self.library_dirs = None
        if not self.ext_modules:
            self.ext_modules = []

        # it is better to define command classes here, so it available in --help text
        self.cmdclass["test"] = test
        self.cmdclass["build_prepare"] = build_prepare

        self.global_options += [
            (
                "use-cython=",
                None,
                "use Cython to make faster binary python modules (choices: " + "yes/no; default: autodetect)",
            ),
            ("profile=", None, "embed profiling information into Cython build (choices: " + "yes/no; default: no)"),
            # cython-build specific options
            (
                "blas-lib=",
                None,
                'library name that provides cblas_sswap function, without lib prefix [default: pkg-config --libs cblas  or "cblas"]',
            ),
            (
                "lapack-lib=",
                None,
                'library name that provides clapack_sgetri function, without lib prefix [default: pkg-config --libs lapack  or "lapack"]',
            ),
            (
                "library-dirs=",
                "L",
                "list of additional directories where libraries are seached for, separated by "
                + "{0} character [default: try pkg-config  or none]".format(os.pathsep),
            ),
        ]
Beispiel #29
0
 def __init__(self, attrs=None):
     self.add_prefix = False
     self.remove_prefix = False
     Distribution.__init__(self, attrs)
Beispiel #30
0
 def __init__(self, *attrs):
     Distribution.__init__(self, *attrs)
     self.cmdclass['install'] = ZopeInstall
     self.cmdclass['build'] = MyBuilder
     self.cmdclass['build_ext'] = MyExtBuilder
     self.cmdclass['install_lib'] = MyLibInstaller
Beispiel #31
0
 def __init__(self, attrs=None):
     self.js_package = None
     self.cs_files = None
     self.js_outdirs = None
     self.js_libs = None
     Distribution.__init__(self, attrs)
Beispiel #32
0
 def __init__(self, *args, **kwargs):
     _Distribution.__init__(self, *args, **kwargs)
Beispiel #33
0
 def __init__(self, *args):
     self.without_gettext = False
     self.without_icon_cache = True
     Distribution.__init__(self, *args)
Beispiel #34
0
 def __init__(self, attrs=None):
     Distribution.__init__(self, attrs)
     self.ext_modules = []
Beispiel #35
0
 def __init__(self, *args):
     self.without_gettext = False
     Distribution.__init__(self, *args)
Beispiel #36
0
 def __init__(self, *attrs):
     Distribution.__init__(self, *attrs)
     self.cmdclass['build_py'] = MyPyBuilder
     self.cmdclass['install_lib'] = MyLibInstaller
Beispiel #37
0
 def __init__(self, *attrs):
     Distribution.__init__(self, *attrs)
     self.cmdclass["install"] = UMDInstInstall
     self.cmdclass["build_scripts"] = UMDInstBuildScripts
Beispiel #38
0
 def __init__ (self, attrs=None):
     self.add_prefix = False
     self.remove_prefix = False
     Distribution.__init__(self,attrs)
Beispiel #39
0
 def __init__(self, attrs=None):
     self.fix_prefix = None
     Distribution.__init__(self, attrs=attrs)
Beispiel #40
0
 def __init__(self, *attrs):
     Distribution.__init__(self, *attrs)
     self.cmdclass['build_scripts'] = BuildScripts
     self.cmdclass['build_py'] = BuildPy
     self.cmdclass['install_lib'] = InstallLib
     return
Beispiel #41
0
 def __init__(self, attrs):
     self.cflags = None  # Default CFLAGS overridable by setup.cfg
     self.ldflags = None  # Default LDFLAGS overridable by setup.cfg
     Distribution.__init__(self, attrs)
     self.cmdclass['build_ext'] = build_ext
     self.cmdclass['test'] = test
Beispiel #42
0
 def __init__(self, attrs):
     # Get the name of the file that will hold the version number
     self.version_file = attrs.pop('version_file') 
     Distribution.__init__(self, attrs)
Beispiel #43
0
 def __init__(self, attrs=None):
     self.java_files = None
     self.javah_files = None
     self.extra_jar_files = None
     Distribution.__init__(self, attrs)
Beispiel #44
0
 def __init__(self, *args, **kwargs):
   self.package_data = None
   Distribution.__init__(self, *args, **kwargs)
Beispiel #45
0
 def __init__ (self, *args):
     self.without_gettext = False
     Distribution.__init__(self, *args)
Beispiel #46
0
 def __init__(self, *args, **kwargs):
     self.package_data = None
     Distribution.__init__(self, *args, **kwargs)
Beispiel #47
0
 def __init__(self, attrs):
     self.po = None
     self.po_dir = None
     Distribution.__init__(self, attrs)
Beispiel #48
0
 def __init__(self, attrs=None):
     OldDistribution.__init__(self, attrs)
Beispiel #49
0
 def __init__(self, *attrs):
     Distribution.__init__(self, *attrs)
     self.cmdclass['build_scripts'] = BuildScripts
     self.cmdclass['build_py'] = BuildPy
     self.cmdclass['install_lib'] = InstallLib
     return
Beispiel #50
0
 def __init__ (self, *args):
   self.build_documentation = False
   self.install_documentation = True
   self.without_gettext = False
   self.without_icon_cache = False
   Distribution.__init__(self, *args)
 def __init__(self, attrs=None):
     self.coredata_files = None
     self.example_files = None
     self.document_files = None
     Distribution.__init__(self, attrs)
Beispiel #52
0
 def __init__(self, *args, **kwargs):
     self.configure_files = []
     self.configure_values = {}
     self.man_pages = []
     _Distribution.__init__(self, *args, **kwargs)
Beispiel #53
0
 def __init__(self, *args, **kwargs):
     self.configure_files = []
     self.configure_values = {}
     self.man_pages = []
     _Distribution.__init__(self, *args, **kwargs)
Beispiel #54
0
 def __init__(self, attrs=None):
     self.protofiles = None
     _Distribution.__init__(self, attrs)
 def __init__(self,attrs):
     self.interpreters = None
     Distribution.__init__(self, attrs)
Beispiel #56
0
 def __init__(self, attrs = None):
     assert not hasattr(self, 'data_dir')
     self.data_dir = []
     old_Distribution.__init__(self, attrs)