示例#1
0
# * along with this program; if not, write to the Free Software
# * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
# * 02111-1307  USA
# *
# *  All comments concerning this program package may be sent to the
# *  e-mail address '*****@*****.**'
# *
# **************************************************************************
import os
import sys
from install.funcs import Environment, progInPath

get = lambda x: os.environ.get(x, 'y').lower() in ['true', 'yes', 'y', '1']


env = Environment(args=sys.argv)

noOpencv = '--no-opencv' in sys.argv or not get('OPENCV')
noScipy = '--no-scipy' in sys.argv or not get('SCIPY')


#  ************************************************************************
#  *                                                                      *
#  *                              Libraries                               *
#  *                                                                      *
#  ************************************************************************

cmake = env.addLibrary(
    'cmake',
    tar='cmake-3.2.2.tgz',
    targets=[env.getBin('cmake')],
示例#2
0
# * You should have received a copy of the GNU General Public License
# * along with this program; if not, write to the Free Software
# * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
# * 02111-1307  USA
# *
# *  All comments concerning this program package may be sent to the
# *  e-mail address '*****@*****.**'
# *
# **************************************************************************
import os
import sys
from install.funcs import Environment, progInPath

get = lambda x: os.environ.get(x, 'y').lower() in ['true', 'yes', 'y', '1']

env = Environment(args=sys.argv)

noOpencv = '--no-opencv' in sys.argv or not get('OPENCV')
noScipy = '--no-scipy' in sys.argv or not get('SCIPY')

#  ************************************************************************
#  *                                                                      *
#  *                              Libraries                               *
#  *                                                                      *
#  ************************************************************************

cmake = env.addLibrary(
    'cmake',
    tar='cmake-3.2.2.tgz',
    targets=[env.getBin('cmake')],
    commands=[
示例#3
0
# * You should have received a copy of the GNU General Public License
# * along with this program; if not, write to the Free Software
# * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
# * 02111-1307  USA
# *
# *  All comments concerning this program package may be sent to the
# *  e-mail address '*****@*****.**'
# *
# **************************************************************************
import os
import sys
from install.funcs import Environment, progInPath

get = lambda x: os.environ.get(x, 'y').lower() in ['true', 'yes', 'y', '1']

env = Environment(args=sys.argv)

noOpencv = '--no-opencv' in sys.argv or not get('OPENCV')
noScipy = '--no-scipy' in sys.argv or not get('SCIPY')

#  *******************************
#  *  PATHS
#  *******************************
# GET the real path where scipion is installed
SCIPION = env._args[0]
SCIPION = os.path.realpath(SCIPION)
SCIPION = os.path.dirname(SCIPION)
SCIPION = os.path.abspath(SCIPION)

SW = SCIPION + '/software'
SW_BIN = SW + '/bin'