Skip to content

Commit 6460db1

Browse files
authored
Update setup.py
Change distutils.build_py to its setuptools wrapper. Distutils one deprecated since py3.8, but setuptools one working py3.6-3.10
1 parent 89d7611 commit 6460db1

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

setup.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
#!/usr/bin/env python
2-
from __future__ import print_function
32
try:
43
from setuptools import setup, find_packages
54
except ImportError:
6-
from ez_setup import use_setuptools
5+
from ez_setup import use_setuptools # type: ignore[Pylance]
76
use_setuptools()
87
from setuptools import setup, find_packages
98

10-
from distutils.command.build_py import build_py as _build_py
9+
from setuptools.command.build_py import build_py as _build_py
1110
from setuptools.command.sdist import sdist as _sdist
1211
import fnmatch
1312
import os
@@ -95,7 +94,6 @@ def build_py_modules(basedir, excludes=[]):
9594
license="BSD",
9695
url="https://github.com/gitpython-developers/GitPython",
9796
packages=find_packages(exclude=("test.*")),
98-
# package_data={'git': ['**/*.pyi', 'py.typed']},
9997
include_package_data=True,
10098
py_modules=build_py_modules("./git", excludes=["git.ext.*"]),
10199
package_dir={'git': 'git'},

0 commit comments

Comments
 (0)