File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36,7 +36,12 @@ def fetch_oms(self):
3636
3737 # Select platform-specific download
3838 if (sysconfig .get_platform () == 'linux-x86_64' ):
39- url = 'https://build.openmodelica.org/omsimulator/nightly/linux-amd64/OMSimulator-linux-amd64-@OMS_VERSION_STRING@.tar.gz'
39+ info = platform .freedesktop_os_release ()
40+ version = info .get ("VERSION_ID" , "" )
41+ if version .startswith ("24.04" ):
42+ url = 'https://build.openmodelica.org/omsimulator/nightly/linux-amd64/OMSimulator-linux-amd64-@OMS_VERSION_STRING@.tar.gz'
43+ else :
44+ url = 'https://build.openmodelica.org/omsimulator/nightly/linux-focal-amd64/OMSimulator-linux-focal-amd64-@OMS_VERSION_STRING@.tar.gz'
4045 dll_path = "lib/x86_64-linux-gnu/libOMSimulator.so"
4146 source_path = "lib/x86_64-linux-gnu/OMSimulator"
4247 elif (sysconfig .get_platform () == "mingw_x86_64_ucrt" or (sysconfig .get_platform () == 'mingw' and platform .architecture ()[0 ] == '64bit' )):
You can’t perform that action at this time.
0 commit comments