@@ -124,26 +124,6 @@ def replace_shebang(filename, shebang):
124
124
f .write (l )
125
125
126
126
127
- def build_external (source_dir , args ):
128
- """ Build hap.py external dependencies """
129
- print >> sys .stderr , "Building external dependencies"
130
- if args .boost :
131
- boost_prefix = "BOOST_ROOT=%s " % args .boost
132
- else :
133
- boost_prefix = ""
134
-
135
- setupscript = ""
136
- if args .setup != "auto" :
137
- setupscript = " . %s && " % os .path .join (source_dir , "src" , "sh" , args .setup + "-setup.sh" )
138
-
139
- setupscript += boost_prefix
140
-
141
- to_run = "cd %s && %s ./make_dependencies.sh rebuild" % (os .path .join (source_dir , "external" ),
142
- setupscript )
143
- print >> sys .stderr , to_run
144
- subprocess .check_call (to_run , shell = True )
145
-
146
-
147
127
def build_haplotypes (source_dir , build_dir , args ):
148
128
if args .boost :
149
129
boost_prefix = "BOOST_ROOT=%s " % args .boost
@@ -257,10 +237,6 @@ def main():
257
237
help = "Keep the scratch folder." , default = False ,
258
238
action = "store_true" )
259
239
260
- parser .add_argument ("--no-rebuild-external" , dest = "external_build" , default = True ,
261
- action = "store_false" ,
262
- help = "Don't rebuild external dependencies if not necessary." )
263
-
264
240
parser .add_argument ("--with-rtgtools" , dest = "build_rtgtools" , default = False ,
265
241
action = "store_true" ,
266
242
help = "Get and build rtgtools. You need to have Java and Ant for this." )
@@ -301,9 +277,6 @@ def main():
301
277
if args .boost and not os .path .exists (args .boost ):
302
278
raise Exception ("Boost directory doesn't exist." )
303
279
304
- # build deps
305
- #build_external(source_dir, args)
306
-
307
280
# build hap.py
308
281
build_dir = tempfile .mkdtemp (prefix = "build" , dir = args .scratch_path )
309
282
try :
0 commit comments