-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #219 from MadAnalysis/update_zlib
Update zlib version
- Loading branch information
Showing
4 changed files
with
291 additions
and
272 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,78 +1,83 @@ | ||
#!/usr/bin/env python | ||
|
||
################################################################################ | ||
# | ||
# | ||
# Copyright (C) 2012-2023 Jack Araz, Eric Conte & Benjamin Fuks | ||
# The MadAnalysis development team, email: <ma5team@iphc.cnrs.fr> | ||
# | ||
# | ||
# This file is part of MadAnalysis 5. | ||
# Official website: <https://github.com/MadAnalysis/madanalysis5> | ||
# | ||
# | ||
# MadAnalysis 5 is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation, either version 3 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# | ||
# MadAnalysis 5 is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with MadAnalysis 5. If not, see <http://www.gnu.org/licenses/> | ||
# | ||
# | ||
################################################################################ | ||
|
||
|
||
################################################################################ | ||
# MAIN PROGRAM | ||
################################################################################ | ||
|
||
"""This is the main executable, a simple frontend to set up the PYTHONPATH | ||
and call immediately the command line interface scripts""" | ||
""" | ||
This is the main executable, a simple frontend to set up the PYTHONPATH | ||
and call immediately the command line interface scripts | ||
""" | ||
|
||
# Checking if the correct release of Python is installed | ||
import importlib | ||
import os | ||
import sys | ||
if sys.version_info[0] != 3 or sys.version_info[1] <= 6: | ||
sys.exit('Python release '+ sys.version + ' is detected.\n' + \ | ||
'MadAnalysis 5 works only with Python version 3.6 or more recent version.\n' + \ | ||
'Please upgrade your Python installation.') | ||
|
||
# Checking if the correct release of Python is installed | ||
if sys.version_info[0] != 3 or sys.version_info[1] <= 6: | ||
sys.exit( | ||
"Python release " | ||
+ sys.version | ||
+ " is detected.\n" | ||
+ "MadAnalysis 5 works only with Python version 3.6 or more recent version.\n" | ||
+ "Please upgrade your Python installation." | ||
) | ||
|
||
# Checking that the 'six' package is present | ||
try: | ||
import six | ||
except: | ||
sys.exit('The python "six" module is not found on your system and it is required for MadAnalysis 5 for ' +\ | ||
'a question of Python 2/3 compatibility. Please install it with the following command:\n' +\ | ||
'pip install six') | ||
if not importlib.util.find_spec("six"): | ||
sys.exit( | ||
'The python "six" module is not found on your system and it is required for MadAnalysis 5 for ' | ||
+ "a question of Python 2/3 compatibility. Please install it with the following command:\n" | ||
+ "pip install six" | ||
) | ||
|
||
# Getting the parent directory (ma5 root dir) of the script real path (bin) | ||
import os | ||
import optparse | ||
ma5dir = os.path.split(os.path.dirname(os.path.realpath( __file__ )))[0] | ||
ma5dir = os.path.split(os.path.dirname(os.path.realpath(__file__)))[0] | ||
if not os.path.isdir(ma5dir): | ||
sys.exit('Detected MadAnalysis 5 general folder is not correct:\n' +\ | ||
ma5dir) | ||
os.environ['MA5_BASE']=ma5dir | ||
sys.exit("Detected MadAnalysis 5 general folder is not correct:\n" + ma5dir) | ||
os.environ["MA5_BASE"] = ma5dir | ||
|
||
# Adding the MadAnalysis 5 folder to the current PYTHONPATH | ||
# -> allowing to use MadAnalysis 5 python files | ||
sys.path.insert(0, ma5dir) | ||
|
||
# Adding the python service folder to the current PYTHONPATH | ||
servicedir = ma5dir+'/tools/ReportGenerator/Services/' | ||
servicedir = ma5dir + "/tools/ReportGenerator/Services/" | ||
servicedir = os.path.normpath(servicedir) | ||
if not os.path.isdir(servicedir): | ||
sys.exit('Detected MadAnalysis 5 service folder is not correct:\n' + ma5dir) | ||
sys.exit("Detected MadAnalysis 5 service folder is not correct:\n" + ma5dir) | ||
sys.path.insert(0, servicedir) | ||
|
||
# Release version | ||
# Do not touch it !!!!! | ||
version = "1.10.11" | ||
date = "2023/08/18" | ||
# Do not touch it !!!!! | ||
version = "1.10.12" | ||
date = "2023/09/13" | ||
|
||
# Loading the MadAnalysis session | ||
import madanalysis.core.launcher | ||
madanalysis.core.launcher.LaunchMA5(version, date, ma5dir) | ||
|
||
|
||
madanalysis.core.launcher.LaunchMA5(version, date, ma5dir) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.