Skip to content

Commit 9ed64a6

Browse files
committed
update to use cpython as a git module
1 parent 2a74cca commit 9ed64a6

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

Makefile

+3-9
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,12 @@
77

88
# Configuration
99

10-
CPYTHON_PATH := cpython # TODO: replace with a git submodule
10+
CPYTHON_PATH := cpython #Current commit for this upstream repo is setted by the submodule
1111
BRANCH := 3.7
1212
LANGUAGE_TEAM := python-docs-es
1313
LANGUAGE := es
1414

1515
# Internal variables
16-
17-
UPSTREAM := https://github.com/python/cpython
1816
VENV := $(shell realpath ./venv)
1917
PYTHON := $(shell which python3)
2018
WORKDIRS := $(VENV)/workdirs
@@ -134,12 +132,8 @@ pot: setup
134132
.PHONY: setup
135133
setup: venv
136134
# Setup the main clone
137-
if ! [ -d $(CPYTHON_PATH) ]; then \
138-
git clone --depth 1 --branch $(BRANCH) $(UPSTREAM) $(CPYTHON_PATH); \
139-
else \
140-
git -C $(CPYTHON_PATH) pull --rebase; \
141-
fi
142-
135+
git submodule sync
136+
git submodule update --init --force $(CPYTHON_PATH)
143137
# Setup the current work directory
144138
if ! [ -d $(CPYTHON_WORKDIR) ]; then \
145139
rm -fr $(WORKDIRS); \

0 commit comments

Comments
 (0)