Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd46ba96

Browse files
authored
Merge pull request#1665 from EliahKagan/omit-pymod
Omit py_modules in setup
2 parents7744984 +3fbbfd7 commitd46ba96

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

‎setup.py

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
fromsetuptoolsimportsetup,find_packages
55
fromsetuptools.command.build_pyimportbuild_pyas_build_py
66
fromsetuptools.command.sdistimportsdistas_sdist
7-
importfnmatch
87
importos
98
importsys
109

@@ -62,24 +61,6 @@ def _stamp_version(filename: str) -> None:
6261
print("WARNING: Couldn't find version line in file %s"%filename,file=sys.stderr)
6362

6463

65-
defbuild_py_modules(basedir:str,excludes:Sequence= ())->Sequence:
66-
# create list of py_modules from tree
67-
res=set()
68-
_prefix=os.path.basename(basedir)
69-
forroot,_,filesinos.walk(basedir):
70-
forfinfiles:
71-
_f,_ext=os.path.splitext(f)
72-
if_extnotin [".py"]:
73-
continue
74-
_f=os.path.join(root,_f)
75-
_f=os.path.relpath(_f,basedir)
76-
_f="{}.{}".format(_prefix,_f.replace(os.sep,"."))
77-
ifany(fnmatch.fnmatch(_f,x)forxinexcludes):
78-
continue
79-
res.add(_f)
80-
returnlist(res)
81-
82-
8364
setup(
8465
name="GitPython",
8566
cmdclass={"build_py":build_py,"sdist":sdist},
@@ -91,7 +72,6 @@ def build_py_modules(basedir: str, excludes: Sequence = ()) -> Sequence:
9172
url="https://github.com/gitpython-developers/GitPython",
9273
packages=find_packages(exclude=["test","test.*"]),
9374
include_package_data=True,
94-
py_modules=build_py_modules("./git",excludes=["git.ext.*"]),
9575
package_dir={"git":"git"},
9676
python_requires=">=3.7",
9777
install_requires=requirements,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp