File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 2424 pypi :
2525 needs : [wheel-windows]
2626 uses : ecmwf/reusable-workflows/.github/workflows/cd-pypi.yml@v2
27+ with :
28+ env_vars : |
29+ {
30+ "DEPEND_ON_ECCODESLIB": "1"
31+ }
32+ buildargs : --no-isolation
2733 secrets : inherit
34+
2835
Original file line number Diff line number Diff line change 1717
1818import setuptools
1919
20+ binary = os .getenv ("DEPEND_ON_ECCODESLIB" , "" ) == "1"
21+
2022
2123def read (path ):
2224 file_path = os .path .join (os .path .dirname (__file__ ), * path .split ("/" ))
@@ -90,9 +92,14 @@ def shared(directory):
9092 "attrs" ,
9193 "cffi" ,
9294 "findlibs" ,
93- "eccodeslib;platform_system!='Windows'" ,
9495]
9596
97+ # only add eccodeslib as dependency if building a distribution that should depend on it
98+ if binary :
99+ install_requires += [
100+ "eccodeslib;platform_system!='Windows'" ,
101+ ]
102+
96103setuptools .setup (
97104 name = "eccodes" ,
98105 version = parse_version_from ("gribapi/bindings.py" ),
You can’t perform that action at this time.
0 commit comments