Example #1
0
	def make_distribution(self):
		# This prevents installing the SOURCES file from the egg-info directory into the sdist
		try:
			if 'egg-info' in self.filelist.files[-1]:
				self.filelist.files.pop()
		except:
			print('WARNING: egg-info directory may exist in output')
		sdist.make_distribution(self)
Example #2
0
 def make_distribution(self):
     # This prevents installing the SOURCES file from the egg-info directory into the sdist
     try:
         if 'egg-info' in self.filelist.files[-1]:
             self.filelist.files.pop()
     except:
         print('WARNING: egg-info directory may exist in output')
     sdist.make_distribution(self)
Example #3
0
 def make_distribution(self):
     #self.run_command('build_static')
     thispath = os.path.dirname(os.path.realpath(__file__))
     distpath = os.path.join(thispath,'brilview','web','dist')
     if not os.path.isdir(distpath) or not os.path.exists(distpath):
         raise RuntimeError( 'Prerequisite directory %s does not exist, run python setup.py build_static to create it\n'%distpath )
     return _sdist.make_distribution(self)
Example #4
0
 def make_distribution(self):
     """Update versioning data and build distribution"""
     news_format = "%s - " % __pkg_data__.MODULE.__version__
     news_matches = [line for line in open("NEWS.rst")
                     if line.startswith(news_format)]
     if not any(news_matches):
         print("NEWS.rst entry for %r missing"
               % (__pkg_data__.MODULE.__version__, ))
         sys.exit(1)
     news_time = time.mktime(time.strptime(news_matches[0].split()[-1],
                             "%Y-%m-%d"))
     if time.time() - news_time > 86400 and not self.force_build:
         print("NEWS.rst entry is older than a day, version may not have "
               "been updated")
         sys.exit(1)
     execute(self.write_version, ())
     sdist.make_distribution(self)
Example #5
0
 def make_distribution(self):
     sdist.make_distribution(self)
     dest = self.archive_files[0]
     dirname, basename = os.path.split(dest)
     base, ext = os.path.splitext(basename)
     while ext in [".zip", ".tar", ".bz2", ".gz", ".Z", ".lz", ".orig"]:
         base, ext = os.path.splitext(base)
     if ext:
         dest = "".join((base, ext))
     else:
         dest = base
     sp = dest.split("-")
     base = sp[:-1]
     nr = sp[-1]
     debian_arch = os.path.join(dirname, "-".join(base) + "_" + nr + ".orig.tar.gz")
     os.rename(self.archive_files[0], debian_arch)
     self.archive_files = [debian_arch]
     print("Building debian .orig.tar.gz in %s" % self.archive_files[0])
Example #6
0
 def make_distribution(self):
     self.prune_file_list()
     sdist.make_distribution(self)
     dest = self.archive_files[0]
     dirname, basename = os.path.split(dest)
     base, ext = os.path.splitext(basename)
     while ext in [".zip", ".tar", ".bz2", ".gz", ".Z", ".lz", ".orig"]:
         base, ext = os.path.splitext(base)
     if ext:
         dest = "".join((base, ext))
     else:
         dest = base
     # sp = dest.split("-")
     # base = sp[:-1]
     # nr = sp[-1]
     debian_arch = os.path.join(dirname, self.get_debian_name() + ".orig.tar.gz")
     os.rename(self.archive_files[0], debian_arch)
     self.archive_files = [debian_arch]
     print("Building debian .orig.tar.gz in %s" % self.archive_files[0])
Example #7
0
File: setup.py Project: vasole/silx
 def make_distribution(self):
     self.prune_file_list()
     sdist.make_distribution(self)
     dest = self.archive_files[0]
     dirname, basename = os.path.split(dest)
     base, ext = os.path.splitext(basename)
     while ext in [".zip", ".tar", ".bz2", ".gz", ".Z", ".lz", ".orig"]:
         base, ext = os.path.splitext(base)
     # if ext:
     #     dest = "".join((base, ext))
     # else:
     #     dest = base
     # sp = dest.split("-")
     # base = sp[:-1]
     # nr = sp[-1]
     debian_arch = os.path.join(dirname, self.get_debian_name() + ".orig.tar.gz")
     os.rename(self.archive_files[0], debian_arch)
     self.archive_files = [debian_arch]
     print("Building debian .orig.tar.gz in %s" % self.archive_files[0])
Example #8
0
 def make_distribution(self):
     print("in sdist_testimages.make_distribution")
     sdist.make_distribution(self)
     dest = self.archive_files[0]
     dirname, basename = op.split(dest)
     base, ext = op.splitext(basename)
     while ext in [".zip", ".tar", ".bz2", ".gz", ".Z", ".lz", ".orig"]:
         base, ext = op.splitext(base)
     if ext:
         dest = "".join((base, ext))
     else:
         dest = base
     sp = dest.split("-")
     base = sp[:-1]
     nr = sp[-1]
     debian_arch = op.join(dirname, "-".join(base) + "_" + nr + ".orig-testimages.tar.gz")
     os.rename(self.archive_files[0], debian_arch)
     self.archive_files = [debian_arch]
     print("Building debian orig-testimages.tar.gz in %s" % self.archive_files[0])
Example #9
0
File: setup.py Project: sylane/feat
    def make_distribution(self):
        # Starting from scratch... Huugg... stinky
        self.filelist.exclude_pattern(".*", is_regex=1)
        # Adding tarball version
        self.filelist.append(tarball_ver_filename)
        # Adding paisley
        root_files = call(root_dir, "git", "ls-files").split("\n")
        import pprint
        pprint.pprint(root_files)
        self.filelist.extend(root_files)
        # Adding paisley
        git_files = call(paisley_dir, "git", "ls-files")
        paisley_files = [os.path.join(paisley_reldir, f)
                         for f in git_files.split("\n")]
        self.filelist.extend(paisley_files)
        # Fix wrong inclusion from setuptools_git
        #self.filelist.exclude_pattern("tools/PKI/.*_ca", is_regex=1)
        self.filelist.exclude_pattern("tools/PKI/openssl.log")
        # Remove git files
        self.filelist.exclude_pattern(".gitignore")
        self.filelist.exclude_pattern(".gitmodules")
        self.filelist.exclude_pattern(".*\.gitignore", is_regex=1)

        _sdist.make_distribution(self)
Example #10
0
 def make_distribution(self):
     self.run_command('build_static')
     return sdist.make_distribution(self)
Example #11
0
 def make_distribution(self):
     self.run_command('build_static')
     return sdist.make_distribution(self)
Example #12
0
 def make_distribution(self):
     for _dirname, filenames in self.distribution.data_files:
         self.filelist.extend(filenames)
     sdist.make_distribution(self)
Example #13
0
 def make_distribution(self):
     sdist.make_distribution(self)
     if self.distribution.ssh_packaging:
         os.unlink(PACKAGED_FOR_SALT_SSH_FILE)
Example #14
0
 def make_distribution(self):
     log.info("running npm install")
     check_output(['npm', 'install', '--quiet'])
     log.info("running sentry compilestatic")
     check_output(['sentry', 'compilestatic'])
     return sdist.make_distribution(self)
Example #15
0
 def make_distribution(self):
     if not osp.isdir(COMPONENTS):
         print("\nWARNING: Server components are missing!! We can't "
               "proceed further!\n")
         sys.exit(1)
     return sdist.make_distribution(self)
Example #16
0
 def make_distribution(self):
     log.info("running npm install")
     check_output(['npm', 'install', '--quiet'])
     log.info("running sentry compilestatic")
     check_output(['sentry', 'compilestatic'])
     return sdist.make_distribution(self)