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 — python-rapidjson/Makefile.virtualenv at master · python-rapidjson/python-rapidjson

Expand file tree

/

Makefile.virtualenv

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
48 lines (37 loc) · 1.26 KB
/

Makefile.virtualenv

Copy path

File metadata and controls

48 lines (37 loc) · 1.26 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# -*- coding: utf-8 -*-
# :Project: python-rapidjson -- Virtualenv related targets
# :Author: Lele Gaifax <[email protected]>
# :License: MIT License
# :Copyright: © 2017 Lele Gaifax
#
ACTIVATE_SCRIPT := $(VENVDIR)/bin/activate
PIP := $(VENVDIR)/bin/pip
REQUIREMENTS ?= requirements.txt
REQUIREMENTS_TIMESTAMP := $(VENVDIR)/$(REQUIREMENTS).timestamp
help::
@printf "\nPython virtualenv related targets\n"
@printf "=================================\n\n"
help::
@printf "virtualenv\n\tsetup the Python virtualenv and install required packages\n"
.PHONY: virtualenv
virtualenv: $(VENVDIR) requirements
$(VENVDIR):
@echo "Bootstrapping Python 3 virtualenv..."
@$(SYS_PYTHON) -m venv --prompt $(notdir $(TOPDIR)) $@ 2>/dev/null || $(SYS_PYTHON) -m venv $@
@$(MAKE) upgrade-pip
help::
@printf "upgrade-pip\n\tupgrade pip\n"
.PHONY: upgrade-pip
upgrade-pip:
@echo "Upgrading pip..."
@$(PIP) install --no-cache-dir --upgrade pip
help::
@printf "requirements\n\tinstall/update required Python packages\n"
.PHONY: requirements
requirements: $(REQUIREMENTS_TIMESTAMP)
$(REQUIREMENTS_TIMESTAMP): $(REQUIREMENTS)
@echo "Installing pre-requirements..."
@PATH=$(TOPDIR)/bin:$(PATH) $(PIP) install --no-cache-dir -r $(REQUIREMENTS)
@touch $@
distclean::
rm -rf $(VENVDIR)
You are visitor 01402503 — 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.