django: add pth file so third party apps don't need to be installed into the python library
This commit is contained in:
parent
aa9cf62e6b
commit
c123ec1dc1
|
@ -4,6 +4,7 @@ drwxr-xr-x root/root usr/bin/
|
|||
drwxr-xr-x root/root usr/lib/
|
||||
drwxr-xr-x root/root usr/lib/python2.6/
|
||||
drwxr-xr-x root/root usr/lib/python2.6/site-packages/
|
||||
-rwxr-xr-x root/root usr/lib/python2.6/site-packages/django.pth
|
||||
drwxr-xr-x root/root usr/lib/python2.6/site-packages/django/
|
||||
-rw-r--r-- root/root usr/lib/python2.6/site-packages/django/__init__.py
|
||||
-rw-r--r-- root/root usr/lib/python2.6/site-packages/django/__init__.pyc
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
89353e3749668778f1370d2e444f3adc Django-1.0.2-final.tar.gz
|
||||
915802196f0e1d93b55e4e5c71229dd0 django.pth
|
||||
|
|
|
@ -5,12 +5,14 @@
|
|||
|
||||
name=django
|
||||
version=1.0.2
|
||||
release=2
|
||||
source=(http://media.djangoproject.com/releases/$version/Django-$version-final.tar.gz)
|
||||
release=3
|
||||
source=(http://media.djangoproject.com/releases/$version/Django-$version-final.tar.gz
|
||||
$name.pth)
|
||||
|
||||
build() {
|
||||
cd Django-$version-final
|
||||
python setup.py install --root=$PKG
|
||||
# Don't lay eggs
|
||||
find $PKG -name '*egg-info' | xargs rm
|
||||
install $SRC/$name.pth $PKG/usr/lib/python2.6/site-packages/$name.pth
|
||||
}
|
||||
|
|
1
django/django.pth
Normal file
1
django/django.pth
Normal file
|
@ -0,0 +1 @@
|
|||
/usr/share/django/apps
|
Loading…
Reference in New Issue
Block a user