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 cbb688f commit b7badfeCopy full SHA for b7badfe
projects/extension/build.py
@@ -786,6 +786,14 @@ def build_idempotent_sql_file(input_file: Path) -> str:
786
# This seems paranoid, but it was a real problem.
787
if "purelib" in sysconfig.get_path_names() and sysconfig.get_path("purelib") in sys.path:
788
sys.path.remove(sysconfig.get_path("purelib"))
789
+ # Debian based systems have their own convention and install some
790
+ # packages in a dist-packages directory.
791
+ system_paths_to_remove = [
792
+ '/usr/lib/python3/dist-packages',
793
+ ]
794
+ for path in system_paths_to_remove:
795
+ if path in sys.path:
796
+ sys.path.remove(path)
797
python_lib_dir = Path(python_lib_dir).joinpath("{this_version()}")
798
import site
799
site.addsitedir(str(python_lib_dir))
0 commit comments