Skip to content

Commit cdbbefa

Browse files
authored
Cleanup sqlite3 port. NFC (#17841)
Should have been part of #17822.
1 parent 7b458fb commit cdbbefa

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

tools/ports/sqlite3.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
# found in the LICENSE file.
55

66
import os
7-
import shutil
87
import logging
98

109
# sqlite amalgamation download URL uses relase year and tag
@@ -34,11 +33,8 @@ def create(final):
3433
logging.info('building port: libsqlite3')
3534

3635
source_path = os.path.join(ports.get_dir(), 'sqlite3', release)
37-
dest_path = ports.clear_project_build('sqlite3')
38-
39-
shutil.copytree(source_path, dest_path)
4036

41-
ports.install_headers(dest_path)
37+
ports.install_headers(source_path)
4238

4339
# flags are based on sqlite-autoconf output.
4440
# SQLITE_HAVE_ZLIB is only used by shell.c
@@ -76,6 +72,7 @@ def create(final):
7672
else:
7773
flags += ['-DSQLITE_THREADSAFE=0']
7874

75+
dest_path = ports.clear_project_build('sqlite3')
7976
ports.build_port(source_path, final, dest_path, flags=flags, exclude_files=['shell.c'])
8077

8178
return [shared.Cache.get_lib(get_lib_name(settings), create, what='port')]

0 commit comments

Comments
 (0)