Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mantid
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mantidproject
mantid
Commits
26123322
Commit
26123322
authored
14 years ago
by
Freddie Akeroyd
Browse files
Options
Downloads
Patches
Plain Diff
Fix MantidBuild refs #1195
parent
d5530f67
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Code/Mantid/MantidBuild.py
+8
-8
8 additions, 8 deletions
Code/Mantid/MantidBuild.py
Code/Mantid/PythonAPI/SConscript
+1
-1
1 addition, 1 deletion
Code/Mantid/PythonAPI/SConscript
Code/Mantid/SConstruct
+5
-1
5 additions, 1 deletion
Code/Mantid/SConstruct
with
14 additions
and
10 deletions
Code/Mantid/MantidBuild.py
+
8
−
8
View file @
26123322
...
...
@@ -107,16 +107,15 @@ def getConfigFlags(command) :
res
=
flags
return
res
def
findBoost
(
boost_path
,
boost_append
):
def
findBoost
(
boost_path
,
boost_append
,
boost_lib
):
#Find the boost_path and the boost append
startPath
=
'
/usr/local/include/
'
dirpath
=
os
.
listdir
(
startPath
)
while
(
len
(
dirpath
)):
for
startPath
in
[
'
/usr/include/
'
,
'
/usr/local/include/
'
]
:
dirpath
=
os
.
listdir
(
startPath
)
while
(
len
(
dirpath
)):
try
:
item
=
dirpath
.
pop
(
0
)
if
item
.
startswith
(
'
boost
'
):
for
file
in
os
.
listdir
(
startPath
+
item
):
print
file
if
file
==
'
weak_ptr.hpp
'
:
boost_path
=
startPath
elif
file
.
startswith
(
'
boost
'
):
...
...
@@ -124,11 +123,12 @@ def findBoost(boost_path,boost_append):
except
:
pass
dirpath
=
os
.
listdir
(
'
/usr/local/lib/
'
)
while
(
len
(
dirpath
)):
for
startPath
in
[
'
/usr/lib64/
'
,
'
/usr/lib/
'
,
'
/usr/local/lib/
'
]
:
dirpath
=
os
.
listdir
(
startPath
)
while
(
len
(
dirpath
)):
try
:
item
=
dirpath
.
pop
(
0
)
m
=
re
.
search
(
"
lib
boost_
python
(.*).so
"
,
item
)
m
=
re
.
search
(
boost_
lib
+
"
(.*).so
"
,
item
)
if
m
!=
None
:
boost_append
=
m
.
group
(
1
)
except
:
...
...
This diff is collapsed.
Click to expand it.
Code/Mantid/PythonAPI/SConscript
+
1
−
1
View file @
26123322
...
...
@@ -17,7 +17,7 @@ if os.name == 'posix':
#myenv.Append(CPPPATH='/usr/include/python' + sys.version[0:3])
myenv
.
Append
(
MYLIBLIST
=
'
python
'
+
sys
.
version
[
0
:
3
])
myenv
.
Replace
(
SHLIBSUFFIX
=
'
.so
'
)
myenv
.
Append
(
MYLIBLIST
=
'
boost_python
'
+
MantidBuild
.
findBoost
(
''
,
''
)[
'
append
'
])
myenv
.
Append
(
MYLIBLIST
=
'
boost_python
'
+
MantidBuild
.
findBoost
(
''
,
''
,
'
libboost_python
'
)[
'
append
'
])
# windows
else
:
#python_path = 'C:/Python25/'
...
...
This diff is collapsed.
Click to expand it.
Code/Mantid/SConstruct
+
5
−
1
View file @
26123322
...
...
@@ -114,6 +114,7 @@ else:
boost_path
=
MantidBuild
.
procHeaderPath
(
ln
,
'
BOOST_ROOT
'
,
boost_path
)
poco_path
=
MantidBuild
.
procHeaderPath
(
ln
,
'
POCO_ROOT
'
,
poco_path
)
python_path
=
MantidBuild
.
procHeaderPath
(
ln
,
'
PYTHON_LIB
'
,
python_path
)
boost_append
=
MantidBuild
.
procHeader
(
ln
,
'
BOOST_APPEND
'
,
boost_append
)
f
.
close
()
else
:
boost_path
=
''
...
...
@@ -123,7 +124,9 @@ else:
boost_append
=
''
opencascade_path
=
'
/opt/OpenCASCADE
'
MantidBuild
.
findBoost
(
boost_path
,
boost_append
)
boost_res
=
MantidBuild
.
findBoost
(
boost_path
,
boost_append
,
'
libboost_regex
'
)
boost_append
=
boost_res
[
'
append
'
]
boost_path
=
boost_res
[
'
path
'
]
print
"
POCO_ROOT:
"
,
poco_path
print
"
BOOST_ROOT:
"
,
boost_path
...
...
@@ -158,6 +161,7 @@ elif platform.system() == 'Linux':
cppPaths
.
append
(
boost_path
)
cppPaths
.
append
(
USRINCLUDE
)
cppPaths
.
append
(
USRLOCALINCLUDE
)
cppPaths
.
append
(
USRINCLUDE
+
'
/muParser
'
)
libDirList
.
append
(
USRLIB
)
elif
platform
.
system
()
==
'
Darwin
'
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment