Skip to content
This repository was archived by the owner on Jul 22, 2023. It is now read-only.

Commit d5dcb1a

Browse files
committed
update build
1 parent 0bf49e7 commit d5dcb1a

File tree

2 files changed

+20
-16
lines changed

2 files changed

+20
-16
lines changed

.circleci/config.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,21 @@ jobs:
2020
sudo apt-get update
2121
sudo apt-get install apt-transport-https
2222
23-
# - run:
24-
# name: install dotnet
25-
# command: |
26-
# # see https://dotnet.microsoft.com/download/linux-package-manager/debian9/sdk-current
27-
# wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.asc.gpg
28-
# sudo mv microsoft.asc.gpg /etc/apt/trusted.gpg.d/
29-
# wget -q https://packages.microsoft.com/config/debian/9/prod.list
30-
# sudo mv prod.list /etc/apt/sources.list.d/microsoft-prod.list
31-
# sudo chown root:root /etc/apt/trusted.gpg.d/microsoft.asc.gpg
32-
# sudo chown root:root /etc/apt/sources.list.d/microsoft-prod.list
33-
# sudo apt-get update
34-
# sudo apt-get install dotnet-sdk-5.0
35-
# sudo apt-get install aspnetcore-runtime-5.0
36-
# sudo apt-get install dotnet-runtime-5.0
37-
# dotnet --info
23+
- run:
24+
name: install dotnet
25+
command: |
26+
# see https://dotnet.microsoft.com/download/linux-package-manager/debian9/sdk-current
27+
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.asc.gpg
28+
sudo mv microsoft.asc.gpg /etc/apt/trusted.gpg.d/
29+
wget -q https://packages.microsoft.com/config/debian/9/prod.list
30+
sudo mv prod.list /etc/apt/sources.list.d/microsoft-prod.list
31+
sudo chown root:root /etc/apt/trusted.gpg.d/microsoft.asc.gpg
32+
sudo chown root:root /etc/apt/sources.list.d/microsoft-prod.list
33+
sudo apt-get update
34+
sudo apt-get install dotnet-sdk-5.0
35+
sudo apt-get install aspnetcore-runtime-5.0
36+
sudo apt-get install dotnet-runtime-5.0
37+
dotnet --info
3838
3939
- run:
4040
name: install mono

clr.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,11 @@ def _get_netfx_path():
1616
def _get_mono_path():
1717
import os, glob
1818

19-
paths = glob.glob(os.path.join(os.path.dirname(__file__), "pythonnet", "mono", "clr.*so"))
19+
pattern = os.path.join(os.path.dirname(__file__), "pythonnet", "mono", "clr.*so")
20+
paths = glob.glob(pattern)
21+
if len(paths) == 0:
22+
raise FileNotFoundError(
23+
"Unable to find any file '*.so' with pattern %r." % pattern)
2024
return paths[0]
2125

2226

0 commit comments

Comments
 (0)