forked from JuliaLang/julia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
virtualenv.mk
29 lines (25 loc) · 1.08 KB
/
virtualenv.mk
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
## virtualenv
VIRTUALENV_SOURCE := $(SRCDIR)/srccache/virtualenv-$(VIRTUALENV_VER)/virtualenv.py
VIRTUALENV_TARGET := $(BUILDDIR)/julia-env
$(SRCDIR)/srccache/virtualenv-$(VIRTUALENV_VER).tar.gz: | $(SRCDIR)/srccache
$(JLDOWNLOAD) $@ https://pypi.python.org/packages/source/v/virtualenv/$(notdir $@)
$(VIRTUALENV_SOURCE): $(SRCDIR)/srccache/virtualenv-$(VIRTUALENV_VER).tar.gz
$(JLCHECKSUM) $<
cd $(dir $<) && $(TAR) zxf $<
touch -c $@
$(VIRTUALENV_TARGET): $(VIRTUALENV_SOURCE)
"$(shell $(SRCDIR)/find_python2)" $< $@
ifeq ($(BUILD_OS), WINNT)
-[ -e $@/Scripts ] && ! [ -e $@/bin ] && cmd //C mklink //J `echo $@/bin $@/Scripts | sed -e 's#/#\\\\#g'`
endif
touch -c $@
clean-virtualenv:
-rm -rf $(VIRTUALENV_TARGET)
distclean-virtualenv: clean-virtualenv
-rm -rf $(SRCDIR)/srccache/virtualenv-$(VIRTUALENV_VER).tar.gz \
$(SRCDIR)/srccache/virtualenv-$(VIRTUALENV_VER)
get-virtualenv: $(SRCDIR)/srccache/virtualenv-$(VIRTUALENV_VER).tar.gz
configure-virtualenv: get-virtualenv
compile-virtualenv: $(VIRTUALENV_SOURCE)
check-virtualenv: compile-virtualenv
install-virtualenv: $(VIRTUALENV_TARGET)