File tree 2 files changed +5
-5
lines changed
tests/fixtures/extended_with_no_setup
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 3
3
import os
4
4
import shutil
5
5
6
- from distutils .command .build_ext import build_ext
7
- from distutils . core import Distribution
8
- from distutils . core import Extension
6
+ from setuptools .command .build_ext import build_ext
7
+ from setuptools import Distribution
8
+ from setuptools import Extension
9
9
10
10
11
11
extensions = [Extension ("extended.extended" , ["extended/extended.c" ])]
12
12
13
13
14
14
def build ():
15
15
distribution = Distribution ({"name" : "extended" , "ext_modules" : extensions })
16
- distribution .package_dir = "extended"
16
+ distribution .package_dir = { "extended" : "extended" }
17
17
18
18
cmd = build_ext (distribution )
19
19
cmd .ensure_finalized ()
Original file line number Diff line number Diff line change @@ -22,5 +22,5 @@ script = "build.py"
22
22
generate-setup-file = false
23
23
24
24
[build-system ]
25
- requires = [" poetry-core>=1.5.0" ]
25
+ requires = [" poetry-core>=1.5.0" , " setuptools>=67.6.1 " ]
26
26
build-backend = " poetry.core.masonry.api"
You can’t perform that action at this time.
0 commit comments