teamplayer: Don't "pip install -e" the package
It always irks me when I see other people do this in deployments and here I am doing it myself.
This commit is contained in:
parent
d542be4ba2
commit
99c79d353d
|
@ -32,15 +32,14 @@ ifeq ($(AVAHI),YES)
|
|||
cp teamplayer.service $(CHROOT)/etc/avahi/services
|
||||
$(inroot) ln -sf /etc/init.d/avahi-daemon $(rcdefault)/avahi-daemon
|
||||
endif
|
||||
$(inroot) $(EMERGE) -1n $(USEPKG) dev-python/virtualenv
|
||||
$(inroot) $(EMERGE) -1n $(USEPKG) dev-python/virtualenv dev-vcs/mercurial
|
||||
$(inroot) getent passwd $(TP_USER) || \
|
||||
$(inroot) useradd -c "Teamplayer Server" -G postgres -U -d $(TP_HOME) $(TP_USER)
|
||||
rm -rf $(CHROOT)/$(TP_HOME)
|
||||
mkdir -p $(CHROOT)/$(TP_HOME)
|
||||
hg clone -u $(TP_BRANCH) $(TP_REPO) $(CHROOT)/$(TP_HOME)/teamplayer
|
||||
cp bash_profile $(CHROOT)$(TP_HOME)/.bash_profile
|
||||
$(inroot) virtualenv $(TP_HOME)
|
||||
$(inroot) bash -c ". $(TP_HOME)/bin/activate ; pip install -e $(TP_HOME)/teamplayer"
|
||||
$(inroot) bash -c ". $(TP_HOME)/bin/activate ; LANG=en_US.utf8 pip install hg+$(TP_REPO)@$(TP_BRANCH)"
|
||||
$(inroot) bash -c ". $(TP_HOME)/bin/activate ; pip install psycopg2 uwsgi Whoosh setproctitle"
|
||||
$(inroot) bash -c ". $(TP_HOME)/bin/activate ; django-admin.py startproject project $(TP_HOME)"
|
||||
chmod +x $(CHROOT)/$(TP_HOME)/manage.py
|
||||
|
|
|
@ -51,7 +51,7 @@ http {
|
|||
server_name HOSTNAME;
|
||||
|
||||
location /static/ {
|
||||
alias TP_HOME/teamplayer/teamplayer/static/;
|
||||
alias TP_HOME/static/;
|
||||
}
|
||||
|
||||
location / {
|
||||
|
|
|
@ -3,6 +3,7 @@ dev-db/postgresql server
|
|||
dev-db/sqlite extensions
|
||||
dev-lang/python sqlite ssl threads xml
|
||||
dev-util/pkgconfig internal-glib
|
||||
dev-vcs/mercurial python_targets_python2_7
|
||||
media-libs/flac ogg
|
||||
media-sound/mpd faad audiofile ffmpeg flac inotify id3tag lame network ogg vorbis mad soup sqlite unicode
|
||||
media-video/ffmpeg avx cpudetection mmx mmxext mp3 network ssse3 x264
|
||||
|
|
Loading…
Reference in New Issue