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