Skip to content

Commit

Permalink
Merge pull request #105 from OpenBioSim/feature_restraint
Browse files Browse the repository at this point in the history
Feature restraint
  • Loading branch information
chryswoods authored Sep 18, 2023
2 parents a3b5f8f + 70c62b3 commit 3268808
Show file tree
Hide file tree
Showing 200 changed files with 15,846 additions and 2,705 deletions.
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
****
`Sire <http://sire.openbiosim.org>`__
`Sire <https://sire.openbiosim.org>`__
****

.. image:: https://github.com/openbiosim/sire/workflows/Build/badge.svg
Expand Down Expand Up @@ -121,7 +121,7 @@ For bug reports/sugguestions/complains please file an issue on

Developers guide
----------------
Please `visit the website <http://sire.openbiosim.org>`__ for information on how to
Please `visit the website <https://sire.openbiosim.org>`__ for information on how to
develop applications using sire.

GitHub actions
Expand Down
2 changes: 1 addition & 1 deletion corelib/build/INSTALL
Original file line number Diff line number Diff line change
Expand Up @@ -108,4 +108,4 @@ as that on which you compiled the binary.

To get further help, please get in touch with the authors
via the Sire mailing lists, or via the email links on the
Sire website, http://sire.openbiosim.org
Sire website, https://sire.openbiosim.org
78 changes: 57 additions & 21 deletions corelib/build/download_compile_sire.py
Original file line number Diff line number Diff line change
@@ -1,23 +1,40 @@

import os
import sys
import shutil

for arg in sys.argv[1:]:
if arg == "-h" or arg == "--help":
print("python download_compile_sire.py OPTIONS")
print("\nScript to download and (optionally) compile and install Sire.")
print(
"\nScript to download and (optionally) compile and install Sire."
)
print("\nOptions:")
print(" -r / --rebuild Rebuild Sire from scratch every time you run this script.")
print(" --download-only Download Sire only. Don't compile or install.")
print(" -b / --branch Choose which branch of the source to download and install.")
print(" By default the 'trunk' (most up-to-date, stable version)")
print(
" -r / --rebuild Rebuild Sire from scratch every time you run this script."
)
print(
" --download-only Download Sire only. Don't compile or install."
)
print(
" -b / --branch Choose which branch of the source to download and install."
)
print(
" By default the 'trunk' (most up-to-date, stable version)"
)
print(" will be downloaded.")
print(" -d / --directory Supply the directory into which the source will be downloaded")
print(" and Sire will be compiled and installed. By default, the")
print(
" -d / --directory Supply the directory into which the source will be downloaded"
)
print(
" and Sire will be compiled and installed. By default, the"
)
print(" current directory will be used.")
print(" --no-execute Only show the commands that will be run. Don't actually run anything.")
print("\nSire is released under the GPL. For more information see http://sire.openbiosim.org")
print(
" --no-execute Only show the commands that will be run. Don't actually run anything."
)
print(
"\nSire is released under the GPL. For more information see https://sire.openbiosim.org"
)
sys.exit(0)


Expand All @@ -31,28 +48,37 @@
rundir = os.getcwd()
branch = "trunk"

for i in range(1,len(sys.argv)):
for i in range(1, len(sys.argv)):
arg = sys.argv[i]

if arg == "--download-only":
print("\nSire will only be downloaded. It will not be compiled or installed.")
print(
"\nSire will only be downloaded. It will not be compiled or installed."
)
download_only = True

elif arg == "-r" or arg == "--rebuild":
print("\nSire will be rebuilt from scratch after download. This will be quite slow...")
print(
"\nSire will be rebuilt from scratch after download. This will be quite slow..."
)
rebuild = True

elif arg == "--no-execute":
print("\nThis script will only print the commands to be run. It won't actually run anything...")
print(
"\nThis script will only print the commands to be run. It won't actually run anything..."
)
no_execute = True

elif arg == "-d" or arg == "--directory":
print("\nDownloading, compiling and installing Sire in directory %s" % sys.argv[i+1])
rundir = sys.argv[i+1]
print(
"\nDownloading, compiling and installing Sire in directory %s"
% sys.argv[i + 1]
)
rundir = sys.argv[i + 1]

elif arg == "-b" or arg == "--branch":
print("\nUsing the %s branch of Sire" % sys.argv[i+1])
branch = sys.argv[i+1]
print("\nUsing the %s branch of Sire" % sys.argv[i + 1])
branch = sys.argv[i + 1]

if must_exit:
sys.exit(0)
Expand Down Expand Up @@ -107,7 +133,12 @@
if no_execute:
print("svn co %s ./python" % python)
elif os.system("svn co %s ./python" % python) != 0:
if os.system("svn co %s ./python" % python.replace("python","python2")) != 0:
if (
os.system(
"svn co %s ./python" % python.replace("python", "python2")
)
!= 0
):
print("Failed to checkout the source for the python wrappers")
sys.exit(-1)
else:
Expand All @@ -125,7 +156,9 @@

if rebuild:
if os.path.exists("build"):
print("Rebuilding from scratch so removing existing build directory...")
print(
"Rebuilding from scratch so removing existing build directory..."
)

if no_execute:
print("rm -rf ./build")
Expand Down Expand Up @@ -161,7 +194,10 @@

if no_execute:
print("nice cmake ../../corelib -DSIRE_INSTALL_PREFIX=%s" % sire_app)
elif os.system("nice cmake ../../corelib -DSIRE_INSTALL_PREFIX=%s" % sire_app) != 0:
elif (
os.system("nice cmake ../../corelib -DSIRE_INSTALL_PREFIX=%s" % sire_app)
!= 0
):
print("Could not successfully run cmake on corelib")
sys.exit(-1)

Expand Down
2 changes: 1 addition & 1 deletion corelib/build/templates/header
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* that should have come with this distribution.
*
* You can contact the authors via the website
* at http://sire.openbiosim.org
* at https://sire.openbiosim.org
*
\*********************************************/

2 changes: 1 addition & 1 deletion corelib/share/build/install_sire.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ if [ ! -d "$install_dir" ]; then
echo "* WARNING - INSTALLATION FAILED"
echo "* PLEASE CHECK THAT YOU CAN WRITE TO $install_dir"
echo "* IF YOU CAN, PLEASE CONTACT THE DEVELOPERS AT"
echo "* http://sire.openbiosim.org"
echo "* https://sire.openbiosim.org"
echo "************************************************"
echo " "
exit -1
Expand Down
2 changes: 1 addition & 1 deletion corelib/src/apps/sire/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -893,7 +893,7 @@ int main(int argc, char **argv)
"under certain conditions; type \"sire -l\" or \"sire --license\"\n"
"for warranty and licensing conditions.\n\n"
"For more information and to contact the authors please visit\n\n"
"http://sire.openbiosim.org"));
"https://sire.openbiosim.org"));

printBox(QObject::tr("%4@%5: Starting primary node (%1 of %2): nThreads()=%3")
.arg(Cluster::getRank())
Expand Down
2 changes: 1 addition & 1 deletion corelib/src/libs/SireBase/progressbar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* that should have come with this distribution.
*
* You can contact the authors via the website
* at http://sire.openbiosim.org
* at https://sire.openbiosim.org
*
\*********************************************/

Expand Down
2 changes: 1 addition & 1 deletion corelib/src/libs/SireBase/progressbar.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* that should have come with this distribution.
*
* You can contact the authors via the website
* at http://sire.openbiosim.org
* at https://sire.openbiosim.org
*
\*********************************************/

Expand Down
Loading

0 comments on commit 3268808

Please sign in to comment.