Commit e0e4b8b8 by Eric Coissac

Patch a bug in the manifest

parent 6c91d110
include setup.py
recursive-include distutils.ext *.py *.c
recursive-include src *.pyx *.pxd *.c *.h
recursive-include src *.pyx *.pxd *.c *.h *.cfiles
recursive-include doc/sphinx/source *.txt *.rst *.py
include doc/sphinx/make.bat
include doc/sphinx/Makefile
......
......@@ -4137,8 +4137,14 @@ import shutil
import sys
import tempfile
import urllib2
import imp
import zipimport
import importlib
import glob
import tarfile
from distutils.version import LooseVersion
from tarfile import TarFile
tmpdir = None
......@@ -4192,18 +4198,18 @@ def get_a_pip_module(minversion=PIP_MINVERSION):
script = pipinstallscript.read()
getpip_py = os.path.join(tmpdir, "get-pip.py")
with open(getpip_py, "wb") as fp:
log.info("Downloading temporary pip...")
print >>sys.stderr,"Downloading temporary pip..."
fp.write(script)
log.info(" done.")
print >>sys.stderr," done."
getpip = imp.load_source("getpip",getpip_py)
ZIPFILE=getpip.ZIPFILE
pip_zip = os.path.join(tmpdir, "pip.zip")
with open(pip_zip, "wb") as fp:
log.info("Installing temporary pip...")
print >>sys.stderr,"Installing temporary pip..."
fp.write(base64.decodestring(ZIPFILE))
log.info(" done.")
print >>sys.stderr," done."
zipmodule = zipimport.zipimporter(pip_zip)
pipmodule = zipmodule.load_module("pip")
......@@ -4228,19 +4234,18 @@ def pip_download_package(package,pip=None):
args = ['install']
if directory is not None:
args.append('--download=%s' % tmpdir)
args.append('--no-deps')
args.append('-I')
args.append('--download=%s' % tmpdir)
args.append('--no-deps')
args.append('-I')
args.append(package)
pip.main(args)
filename = glob.glob(os.path.join(tmpdir,"%s*" % package))[0]
tar = TarFile(filename)
tar = tarfile.open(filename)
tar.extractall(tmpdir)
dir = os.path.splitext(os.path.splitext(filename))
dir = os.path.splitext(os.path.splitext(filename)[0])[0]
return dir
......
......@@ -19,7 +19,7 @@ from os import path
PACKAGE = "OBITools"
VERSION = "1.0.004"
VERSION = "1.0.005"
AUTHOR = 'Eric Coissac'
EMAIL = 'eric@coissac.eu'
URL = 'metabarcoding.org/obitools'
......
major = 1
minor = 0
serial= '004'
serial= '005'
version = "%2d.%02d %s" % (major,minor,serial)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment