Browse Source

change: "shore build" command now uses sys.executable as the default Python interpreter for running setup.py and twine (closes #16)

master
Niklas Rosenstein 6 months ago
parent
commit
7e0ad86526
Signed by: NiklasRosenstein <rosensteinniklas@gmail.com> GPG Key ID: 06D269B33D25F6C6
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/shore/plugins/setuptools.py

+ 2
- 1
src/shore/plugins/setuptools.py View File

@@ -100,10 +100,11 @@ class SetuptoolsBuildTarget:
@override
def build(self, build_directory: str) -> BuildResult:
# TODO: Can we change the distribution output directory with an option?
python = os.getenv('PYTHON', sys.executable)
dist_directory = os.path.join(self.package.directory, 'dist')
dist_exists = os.path.exists(dist_directory)
res = subprocess.call([
'python',
python,
'setup.py',
self.build_type,
'--formats', ','.join(self.formats)


Loading…
Cancel
Save