Skip to content

Commit 536bc9a

Browse files
authored
Merge pull request github#12589 from igfoo/igfoo/distutils
Kotlin: Don't use distutils in build script
2 parents dc6729d + fcf1f6a commit 536bc9a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

java/kotlin-extractor/build.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
import os.path
1212
import sys
1313
import shlex
14-
import distutils
15-
from distutils import dir_util
1614

1715

1816
def parse_args():
@@ -203,7 +201,7 @@ def compile(jars, java_jars, dependency_folder, transform_to_embeddable, output,
203201
version.replace('.', '_')
204202
if os.path.exists(d):
205203
# copy and overwrite files from the version folder to the include folder
206-
distutils.dir_util.copy_tree(d, include_version_folder)
204+
shutil.copytree(d, include_version_folder, dirs_exist_ok=True)
207205

208206
# remove all version folders:
209207
for version in kotlin_plugin_versions.many_versions:

0 commit comments

Comments
 (0)