Skip to content

Commit

Permalink
Update boost binaries download URL
Browse files Browse the repository at this point in the history
  • Loading branch information
philippeVerney committed Jan 10, 2025
1 parent 62f3e4f commit 891557c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
- uses: actions/checkout@v4
- name: Boost install
run: |
(New-Object System.Net.WebClient).DownloadFile("https://boostorg.jfrog.io/artifactory/main/release/1.86.0/binaries/boost_1_86_0-msvc-14.2-64.exe", "${{ runner.temp }}\boost.exe")
(New-Object System.Net.WebClient).DownloadFile("https://archives.boost.io/release/1.87.0/binaries/boost_1_87_0-msvc-14.2-64.exe", "${{ runner.temp }}\boost.exe")
Start-Process -Wait -FilePath "${{ runner.temp }}\boost.exe" "/SILENT","/SP-","/SUPPRESSMSGBOXES","/DIR=${{ runner.temp }}\boost-install"
- name: AVRO install
run: |
Expand Down Expand Up @@ -35,7 +35,7 @@ jobs:
- uses: actions/checkout@v4
- name: Boost install
run: |
(New-Object System.Net.WebClient).DownloadFile("https://boostorg.jfrog.io/artifactory/main/release/1.86.0/binaries/boost_1_86_0-msvc-14.2-64.exe", "${{ runner.temp }}\boost.exe")
(New-Object System.Net.WebClient).DownloadFile("https://archives.boost.io/release/1.87.0/binaries/boost_1_87_0-msvc-14.2-64.exe", "${{ runner.temp }}\boost.exe")
Start-Process -Wait -FilePath "${{ runner.temp }}\boost.exe" "/SILENT","/SP-","/SUPPRESSMSGBOXES","/DIR=${{ runner.temp }}\boost-install"
- name: AVRO install
run: |
Expand Down Expand Up @@ -229,11 +229,11 @@ jobs:
- name: Build wheels
uses: pypa/[email protected]
env:
CIBW_BUILD: cp312-manylinux_* cp313-manylinux_*
CIBW_BUILD: cp38-manylinux_* cp39-manylinux_* cp310-manylinux_* cp311-manylinux_* cp312-manylinux_* cp313-manylinux_*
CIBW_ARCHS: auto64
CIBW_MANYLINUX_X86_64_IMAGE: manylinux_2_28
CIBW_BEFORE_ALL: >
yum install -y wget gcc-c++ openssl-devel boost-devel &&
yum install -y wget gcc-c++ boost-devel openssl-devel &&
yum search epel-release &&
yum info epel-release &&
yum install -y epel-release &&
Expand Down Expand Up @@ -285,7 +285,7 @@ jobs:
- name: Build wheels
uses: pypa/[email protected]
env:
CIBW_BUILD: cp312-macosx_* cp313-macosx_*
CIBW_BUILD: cp38-macosx_* cp39-macosx_* cp310-macosx_* cp311-macosx_* cp312-macosx_* cp313-macosx_*
CIBW_ARCHS: auto64
# See https://cibuildwheel.pypa.io/en/stable/cpp_standards/#macos-and-deployment-target-versions
MACOSX_DEPLOYMENT_TARGET: 11.0
Expand Down
13 changes: 8 additions & 5 deletions python/example/etp_client_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def start_etp_server(client_session):
print(dataspace.uri)
dataspace = all_dataspaces.front()

print("Working on dataspace " + dataspace.uri);
print("List resources of dataspace " + dataspace.uri);
# List resources of this ETP dataspace
etp_context = fetpapi.ContextInfo()
etp_context.uri = dataspace.uri
Expand All @@ -50,20 +50,22 @@ def start_etp_server(client_session):
for resource in all_resources:
print(resource.uri)

# Create a FESAPI Dataobject repository to ease access to dataobjects
print("Create a FESAPI Dataobject repository to ease access to dataobjects");
repo = fesapi.DataObjectRepository()
hdf_proxy_factory = fetpapi.FesapiHdfProxyFactory(client_session)
print("Set specialized HdfProxy to deal with ETP DataArray subprotocol")
repo.setHdfProxyFactory(hdf_proxy_factory)
print(type(hdf_proxy_factory))

# Get dataobjects from the resources to the DataObjectRepository
print("Get dataobjects from the resources to the DataObjectRepository");
uriMap = fetpapi.MapStringString();
for index, resource in enumerate(all_resources):
uriMap[str(index)] = resource.uri
all_resources = client_session.getDataObjects(uriMap);
for dataObject in all_resources.values():
repo.addOrReplaceGsoapProxy(dataObject.data, fetpapi.getDataObjectType(dataObject.resource.uri), fetpapi.getDataspaceUri(dataObject.resource.uri))

# Read data of the first ijk grid
print("Read data of the first ijk grid");
if repo.getIjkGridRepresentationCount() > 0:
ijk_grid = repo.getIjkGridRepresentation(0)
print("IJK Grid : " + ijk_grid.getTitle())
Expand All @@ -81,7 +83,7 @@ def start_etp_server(client_session):
else:
print("This dataspace has no IJK Grid")

# Read data of the first 2d grid
print("Read data of the first 2d grid");
if repo.getHorizonGrid2dRepresentationCount() > 0:
grid2d = repo.getHorizonGrid2dRepresentation(0)
print("2d Grid : " + grid2d.getTitle())
Expand All @@ -96,6 +98,7 @@ def start_etp_server(client_session):
else:
print("This dataspace has no 2d Grid")

print(type(hdf_proxy_factory))
repo.clear()
client_session.close()
print("FINISHED")

0 comments on commit 891557c

Please sign in to comment.