File tree Expand file tree Collapse file tree 1 file changed +2
-21
lines changed Expand file tree Collapse file tree 1 file changed +2
-21
lines changed Original file line number Diff line number Diff line change 2
2
import sys
3
3
from datetime import datetime , MAXYEAR
4
4
from collections import namedtuple
5
- import setuptools
6
5
7
- try :
8
- from wheel .bdist_wheel import bdist_wheel as _bdist_wheel
6
+ from setuptools import setup
9
7
10
- class bdist_wheel (_bdist_wheel ):
11
- def run (self ):
12
- message = "\n " .join (
13
- [
14
- "This is an expected error. Building wheel is disabled "
15
- "for the deprecated sklearn PyPI package to avoid pip caching." ,
16
- "For more details about the sklearn PyPI package deprecation, see:" ,
17
- "https://github.com/scikit-learn/sklearn-pypi-package" ,
18
- ]
19
- )
20
- raise setuptools .errors .ClassError (message )
21
-
22
- cmdclass = {"bdist_wheel" : bdist_wheel }
23
-
24
- except ImportError :
25
- cmdclass = {}
26
8
27
9
with open ("README.md" ) as f :
28
10
LONG_DESCRIPTION = f .read ()
@@ -118,11 +100,10 @@ def maybe_raise_error(checked_datetime):
118
100
119
101
maybe_raise_error (checked_datetime )
120
102
121
- setuptools . setup (
103
+ setup (
122
104
description = "deprecated sklearn package, use scikit-learn instead" ,
123
105
long_description = LONG_DESCRIPTION ,
124
106
long_description_content_type = "text/markdown" ,
125
107
name = "sklearn" ,
126
108
version = "0.0.post2" ,
127
- cmdclass = cmdclass ,
128
109
)
You can’t perform that action at this time.
0 commit comments