GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Use "python" in the virtual env, "python3" outside · gitpython-developers/GitPython@b54c346

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • Makefile
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎Makefile‎

Copy file name to clipboardExpand all lines: Makefile
+6-3Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,13 @@ force_release: clean
2323
test -z "$$VIRTUAL_ENV" || pip install -U build twine
2424

2525
# Build the sdist and wheel that will be uploaded to PyPI.
26-
python3 -m build --sdist --wheel || \
27-
test -z "$$VIRTUAL_ENV" && \
26+
if test -n "$$VIRTUAL_ENV"; then \
27+
python -m build --sdist --wheel; \
28+
else \
29+
python3 -m build --sdist --wheel || \
2830
echo "Use a virtual-env with 'python -m venv env && source env/bin/activate' instead" && \
29-
false
31+
false; \
32+
fi
3033

3134
# Upload to PyPI and push the tag.
3235
twine upload dist/*

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.