Last active
June 13, 2024 23:52
-
-
Save minrk/6d73fc9159448f1f83f8a6d5c2b2dfac to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:22.04 | |
RUN apt-get update && apt-get -y install python3 python3-pip python3-setuptools python3-venv | |
RUN python3 -m pip install --user --upgrade setuptools pip | |
# uncomment to test https://github.com/pypa/pip/pull/11466 | |
# RUN python3 -m pip install https://github.com/minrk/pip/archive/build_env_isolation.tar.gz | |
COPY . /pkg | |
WORKDIR /pkg | |
# installs 'UNKNOWN' | |
RUN python3 -m pip install --user -v . | |
# installs 'debug' | |
RUN python3 -m pip install --user -v --no-build-isolation . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[build-system] | |
requires = [ | |
"setuptools>=60", | |
] | |
build-backend = "setuptools.build_meta" | |
[project] | |
version = "0.1.0" | |
requires-python = ">=3.7" | |
license = {text = "MIT License"} | |
name = "debug" | |
description = "..." | |
[project.scripts] | |
# instapy = "..." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import site | |
import sys | |
import setuptools | |
from setuptools import setup | |
print("\n\n") | |
print(f"in setup.py: {setuptools.__version__=}, {setuptools.__file__=}") | |
path_lines = '\n '.join(sys.path) | |
print(f"sys.path=\n {path_lines}") | |
sp_lines = "\n ".join(site.getsitepackages()) | |
print(f"site.getsitepackages()=\n {sp_lines}") | |
print("\n\n") | |
setup() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
output of
python3 -m pip install --user -v .
in the image: