Comment the install of the packages
This commit is contained in:
27
setup.py
27
setup.py
@ -4,9 +4,11 @@ import sys
|
|||||||
import re
|
import re
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
from distutils.core import setup,Extension
|
from distutils import log
|
||||||
|
from distutils.core import setup
|
||||||
|
|
||||||
|
from distutils.core import Extension
|
||||||
from distutils.sysconfig import get_python_lib
|
from distutils.sysconfig import get_python_lib
|
||||||
from Cython.Build import cythonize
|
|
||||||
|
|
||||||
import os.path
|
import os.path
|
||||||
from distutils import log
|
from distutils import log
|
||||||
@ -14,9 +16,6 @@ from distutils.extension import Extension
|
|||||||
|
|
||||||
sys.path.append(os.path.abspath("python"))
|
sys.path.append(os.path.abspath("python"))
|
||||||
|
|
||||||
dependencies = ['sphinx',"Cython"]
|
|
||||||
|
|
||||||
|
|
||||||
def findPackage(root,base=None):
|
def findPackage(root,base=None):
|
||||||
modules=[]
|
modules=[]
|
||||||
if base is None:
|
if base is None:
|
||||||
@ -28,6 +27,7 @@ def findPackage(root,base=None):
|
|||||||
return modules
|
return modules
|
||||||
|
|
||||||
def RunMake():
|
def RunMake():
|
||||||
|
log.info("Build the build/cobject directory")
|
||||||
try:
|
try:
|
||||||
os.mkdir("build")
|
os.mkdir("build")
|
||||||
except OSError:
|
except OSError:
|
||||||
@ -40,16 +40,23 @@ def RunMake():
|
|||||||
oldwd = os.getcwd()
|
oldwd = os.getcwd()
|
||||||
os.chdir("build/cobject")
|
os.chdir("build/cobject")
|
||||||
install_clibdir_option="-DPYTHONLIB:STRING='%s'" % get_python_lib()
|
install_clibdir_option="-DPYTHONLIB:STRING='%s'" % get_python_lib()
|
||||||
|
log.info("Run CMake")
|
||||||
subprocess.call(['cmake', install_clibdir_option, '../../src'])
|
subprocess.call(['cmake', install_clibdir_option, '../../src'])
|
||||||
|
log.info("Compile the shared C library")
|
||||||
subprocess.call(['make','install']) # temporary fix but should be in src
|
subprocess.call(['make','install']) # temporary fix but should be in src
|
||||||
os.chdir(oldwd)
|
os.chdir(oldwd)
|
||||||
|
|
||||||
|
#def install_dependencies(deps):
|
||||||
|
# for r in deps:
|
||||||
|
# log.info("Installing dependency : %s" %r)
|
||||||
|
# subprocess.call(['pip','install',r])
|
||||||
|
|
||||||
|
|
||||||
PACKAGE = "OBITools3"
|
PACKAGE = "OBITools3"
|
||||||
VERSION = "0.0.0"
|
VERSION = "0.0.6"
|
||||||
AUTHOR = 'Eric Coissac'
|
AUTHOR = 'Eric Coissac'
|
||||||
EMAIL = 'eric@metabarcoding.org'
|
EMAIL = 'eric@metabarcoding.org'
|
||||||
URL = "metabarcoding.org/obitools3"
|
URL = "http://metabarcoding.org/obitools3"
|
||||||
LICENSE = "CeCILL-V2"
|
LICENSE = "CeCILL-V2"
|
||||||
DESCRIPTION = "Tools and library for DNA metabarcoding",
|
DESCRIPTION = "Tools and library for DNA metabarcoding",
|
||||||
PYTHONMIN = '3.7'
|
PYTHONMIN = '3.7'
|
||||||
@ -65,9 +72,11 @@ REQUIRES = ['Cython>=0.24',
|
|||||||
|
|
||||||
os.environ['CFLAGS'] = '-O3 -Wall -I "src" -I "src/libecoPCR" -I "src/libjson"'
|
os.environ['CFLAGS'] = '-O3 -Wall -I "src" -I "src/libecoPCR" -I "src/libjson"'
|
||||||
|
|
||||||
|
#install_dependencies(REQUIRES)
|
||||||
RunMake()
|
RunMake()
|
||||||
|
|
||||||
|
from Cython.Build import cythonize
|
||||||
|
|
||||||
cython_src = [x for x in glob.iglob('python/obitools3/**/*.pyx',
|
cython_src = [x for x in glob.iglob('python/obitools3/**/*.pyx',
|
||||||
recursive=True
|
recursive=True
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user