Skip to content

Commit ebd2ad3

Browse files
committed
Remove decorator package dependency
Remove the decorator package from various installation scripts and requirements files. This follows the previous refactoring of decorators to use functools.wraps, eliminating an external dependency and simplifying the project's package requirements.
1 parent bfa936a commit ebd2ad3

File tree

6 files changed

+2
-7
lines changed

6 files changed

+2
-7
lines changed

conda/recipe/meta.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ outputs:
8282
- {{ pin_subpackage(pkg_name + '-libs', exact=True) }}
8383
run:
8484
- python
85-
- decorator
8685
- psutil
8786
- scipy
8887
- typing_extensions

docker/Dockerfile.demo_opencl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ RUN apt-install-and-clear -y apt-utils sudo cmake g++ llvm git libopenblas-dev
4040

4141
RUN echo "Installing Python"
4242
RUN apt-install-and-clear -y python3-dev python3-pip
43-
RUN pip3 install setuptools numpy pytest cython decorator scipy tornado psutil xgboost
43+
RUN pip3 install setuptools numpy pytest cython scipy tornado psutil xgboost
4444

4545
RUN echo "Installing Jupyter notebook"
4646
RUN pip3 install matplotlib Image "Pillow<7" jupyter[notebook]

docker/install/ubuntu2004_install_python_package.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ pip3 install --upgrade \
2525
"Pygments>=2.4.0" \
2626
cloudpickle \
2727
cython \
28-
decorator \
2928
mypy \
3029
numpy==1.21.* \
3130
orderedset \

docker/install/ubuntu_install_python_package.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ pip3 install --upgrade \
2525
"Pygments>=2.4.0" \
2626
cloudpickle \
2727
cython \
28-
decorator \
2928
mypy \
3029
numpy==1.21.* \
3130
orderedset \

docs/install/from_source.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ The following commands can be used to install the extra Python dependencies:
209209

210210
.. code:: bash
211211
212-
pip3 install numpy decorator
212+
pip3 install numpy
213213
214214
* If you want to use RPC Tracker
215215

python/gen_requirements.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@
6464
"Base requirements needed to install tvm",
6565
[
6666
"cloudpickle",
67-
"decorator",
6867
"ml_dtypes",
6968
"numpy",
7069
"packaging",
@@ -241,7 +240,6 @@
241240
("commonmark", ">=0.7.3"), # From PR #213.
242241
("coremltools", None),
243242
("cpplint", None),
244-
("decorator", None),
245243
(
246244
"docutils",
247245
"<0.17",

0 commit comments

Comments
 (0)