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
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Xavier Thompson
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
Show 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
)
HERE
=
$(
shell
pwd
)
PYTHON_VER
?=
3.
7
PYTHON_VER
?=
3.
8
PYTHON_PATH
=
$(HERE)
/pythons/
$(PYTHON_VER)
PYTHON_PATH
=
$(HERE)
/pythons/
$(PYTHON_VER)
PYTHON_BUILD_DIR
=
$(HERE)
/python_builds
PYTHON_BUILD_DIR
=
$(HERE)
/python_builds
PLATFORM
=
$(
shell
uname
)
PLATFORM
=
$(
shell
uname
)
...
@@ -73,6 +73,9 @@ $(PYTHON_PATH)/bin/$(PYTHON_EXE): $(PYTHON_BUILD_DIR)/$(PYTHON_ARCHIVE)/configur
...
@@ -73,6 +73,9 @@ $(PYTHON_PATH)/bin/$(PYTHON_EXE): $(PYTHON_BUILD_DIR)/$(PYTHON_ARCHIVE)/configur
make
install
>
/dev/null 2>&1
make
install
>
/dev/null 2>&1
@
echo
"Finished installing Python"
@
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
download_python
:
$(PYTHON_BUILD_DIR)/$(PYTHON_ARCHIVE)/configure
python
:
$(PYTHON_PATH)/bin/$(PYTHON_EXE)
python
:
$(PYTHON_PATH)/bin/$(PYTHON_EXE)
...
@@ -95,10 +98,10 @@ $(ALL_COPY):
...
@@ -95,10 +98,10 @@ $(ALL_COPY):
@
mkdir
-p
$(
dir
$@
)
@
mkdir
-p
$(
dir
$@
)
@
cp
$(
subst
$(VENV)
,
$(HERE)
,
$@
)
$@
@
cp
$(
subst
$(VENV)
,
$(HERE)
,
$@
)
$@
$(VENV)/bin/$(PYTHON_EXE)
:
$(PYTHON_PATH)/bin/
$(PYTHON_EXE)
$(VENV)/bin/$(PYTHON_EXE)
:
$(PYTHON_PATH)/bin/
virtualenv
@
command
-v
virtualenv
>
/dev/null 2>&1
||
{
echo
"virtualenv required but not installed"
>
&2
;
exit
1
;
}
#
@command -v virtualenv >/dev/null 2>&1 || { echo "virtualenv required but not installed" >&2; exit 1;
}
test
-d
"
$(HERE)
/venvs"
||
mkdir
-p
$(HERE)
/venvs
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)
$(VENV)/bin/test
:
$(VENV)/bin/$(PYTHON_EXE) $(ALL_COPY)
cd
$(VENV)
&&
bin/
$(PYTHON_EXE)
dev.py
--no-clean
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