1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
--- a/compile.py 2021-04-07 08:29:14.860019874 +0800
+++ b/compile.py 2021-04-07 08:36:43.660024924 +0800
@@ -1,4 +1,4 @@
-#!/usr/bin/python2
+#!/usr/bin/env python
import subprocess
import sys
@@ -103,19 +103,19 @@
# Now proceed with the installation
-if not os.path.exists(pjoin(pythia8_path,'share','Pythia8','examples','Makefile.inc')):
- print( "Error in MG5aMC_PY8_interface installer. Could not find file:\n %s"%\
- pjoin(pythia8_path,'share','Pythia8','examples','Makefile.inc'))
- sys.exit(error_exit_code)
-shutil.copy(pjoin(pythia8_path,'share','Pythia8','examples','Makefile.inc'),
- pjoin(local_path,'Makefile.inc'))
-if not os.path.exists(pjoin(pythia8_path,'share','Pythia8','examples','Makefile')):
- print( "Error in MG5aMC_PY8_interface installer. Could not find file:\n %s"%\
- pjoin(pythia8_path,'share','Pythia8','examples','Makefile'))
- sys.exit(error_exit_code)
-shutil.copy(pjoin(pythia8_path,'share','Pythia8','examples','Makefile'),
- pjoin(local_path,'Makefile'))
-
+if not os.path.exists(pjoin(pythia8_path,'share','pythia8','examples','Makefile.inc')):
+ print "Error in MG5aMC_PY8_interface installer. Could not find file:\n %s"%\
+ pjoin(pythia8_path,'share','pythia8','examples','Makefile.inc')
+ sys.exit(error_exit_code)
+shutil.copy(pjoin(pythia8_path,'share','pythia8','examples','Makefile.inc'),
+ pjoin(local_path,'Makefile.inc'))
+if not os.path.exists(pjoin(pythia8_path,'share','pythia8','examples','Makefile')):
+ print "Error in MG5aMC_PY8_interface installer. Could not find file:\n %s"%\
+ pjoin(pythia8_path,'share','pythia8','examples','Makefile')
+ sys.exit(error_exit_code)
+shutil.copy(pjoin(pythia8_path,'share','pythia8','examples','Makefile'),
+ pjoin(local_path,'Makefile'))
+
if _use_original_PY8_makefile:
shutil.move(pjoin(local_path,'MG5aMC_PY8_interface.cc'),pjoin(local_path,'main89.cc'))
p = subprocess.Popen(['make','main89'], stdout=subprocess.PIPE,
|