Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.buildout
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
6
Merge Requests
6
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
slapos.buildout
Commits
2ba24b3c
Commit
2ba24b3c
authored
Oct 15, 2022
by
Jonas Piterek
Committed by
Godefroid Chapelle
Nov 06, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Makefile now installs virtualenv
parent
6fed3ff0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
Makefile
Makefile
+7
-4
No files found.
Makefile
View file @
2ba24b3c
HERE
=
$(
shell
pwd
)
PYTHON_VER
?=
3.
7
PYTHON_VER
?=
3.
8
PYTHON_PATH
=
$(HERE)
/pythons/
$(PYTHON_VER)
PYTHON_BUILD_DIR
=
$(HERE)
/python_builds
PLATFORM
=
$(
shell
uname
)
...
...
@@ -73,6 +73,9 @@ $(PYTHON_PATH)/bin/$(PYTHON_EXE): $(PYTHON_BUILD_DIR)/$(PYTHON_ARCHIVE)/configur
make
install
>
/dev/null 2>&1
@
echo
"Finished installing Python"
$(PYTHON_PATH)/bin/virtualenv
:
$(PYTHON_PATH)/bin/$(PYTHON_EXE)
$(PYTHON_PATH)
/bin/
$(PYTHON_EXE)
-m
pip
install
virtualenv
download_python
:
$(PYTHON_BUILD_DIR)/$(PYTHON_ARCHIVE)/configure
python
:
$(PYTHON_PATH)/bin/$(PYTHON_EXE)
...
...
@@ -95,10 +98,10 @@ $(ALL_COPY):
@
mkdir
-p
$(
dir
$@
)
@
cp
$(
subst
$(VENV)
,
$(HERE)
,
$@
)
$@
$(VENV)/bin/$(PYTHON_EXE)
:
$(PYTHON_PATH)/bin/
$(PYTHON_EXE)
@
command
-v
virtualenv
>
/dev/null 2>&1
||
{
echo
"virtualenv required but not installed"
>
&2
;
exit
1
;
}
$(VENV)/bin/$(PYTHON_EXE)
:
$(PYTHON_PATH)/bin/
virtualenv
#
@command -v virtualenv >/dev/null 2>&1 || { echo "virtualenv required but not installed" >&2; exit 1;
}
test
-d
"
$(HERE)
/venvs"
||
mkdir
-p
$(HERE)
/venvs
virtualenv
-p
$(PYTHON_PATH)
/bin/
$(PYTHON_EXE)
$(VENV)
$(PYTHON_PATH)
/bin/
virtualenv
-p
$(PYTHON_PATH)
/bin/
$(PYTHON_EXE)
$(VENV)
$(VENV)/bin/test
:
$(VENV)/bin/$(PYTHON_EXE) $(ALL_COPY)
cd
$(VENV)
&&
bin/
$(PYTHON_EXE)
dev.py
--no-clean
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment