mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Kotlin: Don't use distutils in build script
We were getting
DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
during the build.
This commit is contained in:
@@ -11,8 +11,6 @@ import os
|
||||
import os.path
|
||||
import sys
|
||||
import shlex
|
||||
import distutils
|
||||
from distutils import dir_util
|
||||
|
||||
|
||||
def parse_args():
|
||||
@@ -203,7 +201,7 @@ def compile(jars, java_jars, dependency_folder, transform_to_embeddable, output,
|
||||
version.replace('.', '_')
|
||||
if os.path.exists(d):
|
||||
# copy and overwrite files from the version folder to the include folder
|
||||
distutils.dir_util.copy_tree(d, include_version_folder)
|
||||
shutil.copytree(d, include_version_folder, dirs_exist_ok=True)
|
||||
|
||||
# remove all version folders:
|
||||
for version in kotlin_plugin_versions.many_versions:
|
||||
|
||||
Reference in New Issue
Block a user