We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 197a6ed commit 7719847Copy full SHA for 7719847
pip_build.py
@@ -15,6 +15,10 @@
15
]
16
17
18
+def ignore_files(_, filenames):
19
+ return [f for f in filenames if f.endswith("_test.py")]
20
+
21
22
def build():
23
if os.path.exists(build_directory):
24
raise ValueError(f"Directory already exists: {build_directory}")
@@ -24,7 +28,9 @@ def build():
28
# Copy sources (`keras_tuner/` directory and setup files) to build
25
29
# directory
26
30
os.mkdir(build_directory)
27
- shutil.copytree(package, os.path.join(build_directory, package))
31
+ shutil.copytree(
32
+ package, os.path.join(build_directory, package), ignore=ignore_files
33
+ )
34
for fname in to_copy:
35
shutil.copy(fname, os.path.join(f"{build_directory}", fname))
36
os.chdir(build_directory)
0 commit comments