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=None): self.cobitools3 = attrs['cobitools3'] ori_Distribution.__init__(self, attrs) self.global_options.insert( 0, ('cobitools3', None, "intall location of the C library"))
def __init__(self, attrs): try: os.remove("prewikka/siteconfig.py") except: pass self.conf_files = [ ] Distribution.__init__(self, attrs)
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)
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()
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 = """\
def __init__(self, attrs=None): Distribution.__init__(self, attrs) self.cmdclass = { 'config': config, 'build_ext': build_ext, 'sdist': sdist, 'docs': sphinx_build, 'clean': clean, }
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)
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 = []
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)
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 = """\
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)
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."))
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."))
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
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)
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, }
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]))
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)'), ]
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,}
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, }
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=None): self.add_prefix = False self.remove_prefix = False Distribution.__init__(self, attrs)
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
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)
def __init__(self, *args, **kwargs): _Distribution.__init__(self, *args, **kwargs)
def __init__(self, *args): self.without_gettext = False self.without_icon_cache = True Distribution.__init__(self, *args)
def __init__(self, attrs=None): Distribution.__init__(self, attrs) self.ext_modules = []
def __init__(self, *args): self.without_gettext = False Distribution.__init__(self, *args)
def __init__(self, *attrs): Distribution.__init__(self, *attrs) self.cmdclass['build_py'] = MyPyBuilder self.cmdclass['install_lib'] = MyLibInstaller
def __init__(self, *attrs): Distribution.__init__(self, *attrs) self.cmdclass["install"] = UMDInstInstall self.cmdclass["build_scripts"] = UMDInstBuildScripts
def __init__ (self, attrs=None): self.add_prefix = False self.remove_prefix = False Distribution.__init__(self,attrs)
def __init__(self, attrs=None): self.fix_prefix = None Distribution.__init__(self, attrs=attrs)
def __init__(self, *attrs): Distribution.__init__(self, *attrs) self.cmdclass['build_scripts'] = BuildScripts self.cmdclass['build_py'] = BuildPy self.cmdclass['install_lib'] = InstallLib return
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
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)
def __init__(self, attrs=None): self.java_files = None self.javah_files = None self.extra_jar_files = None Distribution.__init__(self, attrs)
def __init__(self, *args, **kwargs): self.package_data = None Distribution.__init__(self, *args, **kwargs)
def __init__ (self, *args): self.without_gettext = False Distribution.__init__(self, *args)
def __init__(self, attrs): self.po = None self.po_dir = None Distribution.__init__(self, attrs)
def __init__(self, attrs=None): OldDistribution.__init__(self, attrs)
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)
def __init__(self, *args, **kwargs): self.configure_files = [] self.configure_values = {} self.man_pages = [] _Distribution.__init__(self, *args, **kwargs)
def __init__(self, attrs=None): self.protofiles = None _Distribution.__init__(self, attrs)
def __init__(self,attrs): self.interpreters = None Distribution.__init__(self, attrs)
def __init__(self, attrs = None): assert not hasattr(self, 'data_dir') self.data_dir = [] old_Distribution.__init__(self, attrs)