File tree Expand file tree Collapse file tree 6 files changed +28
-7
lines changed
Expand file tree Collapse file tree 6 files changed +28
-7
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,11 @@ ENV PIP_NO_CACHE_DIR=1
8181# Make pip silent
8282ENV PIP_QUIET=1
8383ARG RI_VERSION="1.12.0.0.dev0"
84- RUN pip install --upgrade pip
84+ # Pin setuptools<81 as pkg_resources was removed in setuptools 81.0.0+
85+ # cx-Oracle's setup.py still uses pkg_resources
86+ RUN pip install --upgrade pip "setuptools<81"
87+ # Pre-install cx-Oracle without build isolation to use the pinned setuptools
88+ RUN pip install --no-build-isolation "cx_Oracle>=8.3.0,<9"
8589RUN pip install "openmetadata-managed-apis~=${RI_VERSION}" --constraint "https://raw.githubusercontent.com/apache/airflow/constraints-3.1.5/constraints-3.10.txt"
8690RUN pip install "openmetadata-ingestion[${INGESTION_DEPENDENCY}]~=${RI_VERSION}"
8791
Original file line number Diff line number Diff line change @@ -85,7 +85,12 @@ ENV PIP_NO_CACHE_DIR=1
8585# Make pip silent
8686ENV PIP_QUIET=1
8787
88- RUN pip install --upgrade pip
88+ # Pin setuptools<81 as pkg_resources was removed in setuptools 81.0.0+
89+ # cx-Oracle's setup.py still uses pkg_resources
90+ RUN pip install --upgrade pip "setuptools<81"
91+
92+ # Pre-install cx-Oracle without build isolation to use the pinned setuptools
93+ RUN pip install --no-build-isolation "cx_Oracle>=8.3.0,<9"
8994
9095# Install FAB provider for Airflow 3.x Flask Blueprint compatibility
9196RUN pip install "apache-airflow-providers-fab>=1.0.0" --constraint "/home/airflow/airflow-constraints-3.1.5.txt" || true
Original file line number Diff line number Diff line change @@ -15,8 +15,9 @@ install: ## Install the ingestion module to the current environment
1515
1616.PHONY : install_dev_env
1717install_dev_env : # # Install all dependencies for development (in edit mode)
18- pip install --upgrade pip
18+ pip install --upgrade pip " setuptools<81 "
1919 pip install nox
20+ pip install --no-build-isolation " cx_Oracle>=8.3.0,<9"
2021 python -m pip install -e " $( INGESTION_DIR) [all-dev-env, dev, test-unit]"
2122
2223.PHONY : install_dev
@@ -25,10 +26,14 @@ install_dev: ## Install the ingestion module with dev dependencies
2526
2627.PHONY : install_test
2728install_test : # # Install the ingestion module with test dependencies
29+ python -m pip install --upgrade pip " setuptools<81"
30+ python -m pip install --no-build-isolation " cx_Oracle>=8.3.0,<9"
2831 python -m pip install " $( INGESTION_DIR) [test]/"
2932
3033.PHONY : install_all
3134install_all : # # Install the ingestion module with all dependencies
35+ python -m pip install --upgrade pip " setuptools<81"
36+ python -m pip install --no-build-isolation " cx_Oracle>=8.3.0,<9"
3237 python -m pip install " $( INGESTION_DIR) [all]/"
3338
3439.PHONY : install_apis
Original file line number Diff line number Diff line change @@ -81,11 +81,14 @@ ENV PIP_NO_CACHE_DIR=1
8181# Make pip silent
8282ENV PIP_QUIET=1
8383
84- RUN pip install --upgrade pip
84+ # Pin setuptools<81 as pkg_resources was removed in setuptools 81.0.0+
85+ # cx-Oracle's setup.py still uses pkg_resources
86+ RUN pip install --upgrade pip "setuptools<81"
87+ # Pre-install cx-Oracle without build isolation to use the pinned setuptools
88+ RUN pip install --no-build-isolation "cx_Oracle>=8.3.0,<9"
8589
8690ARG INGESTION_DEPENDENCY="all"
8791ARG RI_VERSION="1.12.0.0.dev0"
88- RUN pip install --upgrade pip
8992RUN pip install "openmetadata-ingestion[airflow]~=${RI_VERSION}"
9093RUN pip install "openmetadata-ingestion[${INGESTION_DEPENDENCY}]~=${RI_VERSION}"
9194
Original file line number Diff line number Diff line change @@ -81,7 +81,11 @@ ENV PIP_NO_CACHE_DIR=1
8181# Make pip silent
8282ENV PIP_QUIET=1
8383
84- RUN pip install --upgrade pip setuptools~=70.3.0
84+ # Pin setuptools<81 as pkg_resources was removed in setuptools 81.0.0+
85+ # cx-Oracle's setup.py still uses pkg_resources
86+ RUN pip install --upgrade pip "setuptools<81"
87+ # Pre-install cx-Oracle without build isolation to use the pinned setuptools
88+ RUN pip install --no-build-isolation "cx_Oracle>=8.3.0,<9"
8589
8690ARG INGESTION_DEPENDENCY="all"
8791RUN pip install ".[airflow]"
Original file line number Diff line number Diff line change 169169 "tabulate==0.9.0" ,
170170 "typing-inspect" ,
171171 "packaging" , # For version parsing
172- "setuptools~ =78.1.1" ,
172+ "setuptools> =78.1.1,<81" , # <81 required: pkg_resources removed in setuptools 81+
173173 "shapely" ,
174174 "collate-data-diff>=0.11.9" ,
175175 "jaraco.functools<4.2.0" , # above 4.2 breaks the build
You can’t perform that action at this time.
0 commit comments