install
This commit is contained in:
@@ -34,12 +34,20 @@ import os
|
||||
import shutil
|
||||
|
||||
from distutils.core import setup
|
||||
from glob import glob
|
||||
from shutil import copy
|
||||
|
||||
pjoin = os.path.join
|
||||
here = os.path.abspath(os.path.dirname(__file__))
|
||||
packages = ['yap_kernel','yap_ipython']
|
||||
# pkg_root = pjoin(here, name)
|
||||
|
||||
try:
|
||||
copy(glob(pjoin(here,"../swig/build/lib*/_yap*"))[0],here)
|
||||
copy(glob(pjoin(here,"../../../libYap*"))[-1],here)
|
||||
except:
|
||||
pass
|
||||
|
||||
for d, _, _ in os.walk(pjoin(here, 'yap_kernel')):
|
||||
if os.path.exists(pjoin(d, '__init__.py')):
|
||||
packages.append(d[len(here)+1:].replace(os.path.sep, '.'))
|
||||
|
||||
Reference in New Issue
Block a user