Skip to content

Commit

Permalink
Upgrade miniconda (#492)
Browse files Browse the repository at this point in the history
* bump version of miniconda used - keep same python version

* handle chip architectures in shell script

* set CI to not fail-fast

* bump ThermalNetwork version used in sdk cli (#493)
  • Loading branch information
vtnate authored Nov 13, 2024
1 parent be29495 commit 3a43eec
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 9 deletions.
1 change: 1 addition & 0 deletions .github/workflows/nightly_ci_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ env:
jobs:
weeknight-tests:
strategy:
fail-fast: false
matrix:
# os: container operations in GHA only work on Ubuntu
# https://docs.github.com/en/actions/using-containerized-services/about-service-containers
Expand Down
2 changes: 1 addition & 1 deletion example_files/python_deps/dependencies.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[
{ "name": "ThermalNetwork", "version": "0.2.5"},
{ "name": "ThermalNetwork", "version": "0.3.0"},
{ "name": "urbanopt-ditto-reader", "version": "0.6.4"},
{ "name": "NREL-disco", "version": "0.5.1"},
{ "name": "geojson-modelica-translator", "version": "0.8.0"}
Expand Down
30 changes: 23 additions & 7 deletions example_files/python_deps/install_python.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,29 @@ if [ ! -d $INSTALL_BASE ]; then
exit 1
fi

if [[ "$OSTYPE" == "linux-gnu" ]]; then
PLATFORM=Linux-x86_64
elif [[ "$OSTYPE" == "darwin"* ]]; then
PLATFORM=MacOSX-x86_64
else
error "unknown OS type $OSTYPE"
exit 1
architecture=$(uname -m)

echo "$architecture"

# Handle multiple chip architectures (ARM & x86) as well as OS types (Linux & MacOS)
if [[ $architecture == "x86"* || $architecture == "i686" || $architecture == "i386" ]]; then
if [[ "$OSTYPE" == "linux-gnu" ]]; then
PLATFORM=Linux-x86_64
elif [[ "$OSTYPE" == "darwin"* ]]; then
PLATFORM=MacOSX-x86_64
else
error "unknown OS type $OSTYPE"
exit 1
fi
elif [[ $architecture == "arm"* || $architecture == "aarch"* ]]; then
if [[ "$OSTYPE" == "linux-gnu" ]]; then
PLATFORM=Linux-aarch64
elif [[ "$OSTYPE" == "darwin"* ]]; then
PLATFORM=MacOSX-arm64
else
error "unknown OS type $OSTYPE"
exit 1
fi
fi

CONDA_PACKAGE_NAME=Miniconda3-py${PYTHON_MAJOR_MINOR}_${CONDA_VERSION}-${PLATFORM}.sh
Expand Down
2 changes: 1 addition & 1 deletion lib/uo_cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -905,7 +905,7 @@ def self.update_project(existing_project_folder, new_project_directory)
def self.setup_python_variables
pvars = {
python_version: '3.10',
miniconda_version: '4.12.0',
miniconda_version: '24.9.2-0',
python_install_path: nil,
python_path: nil,
pip_path: nil,
Expand Down

0 comments on commit 3a43eec

Please sign in to comment.