mirror of https://github.com/scrapy/scrapy.git
Fixed distutils packaging for all setup.py bdist formats
--HG-- rename : scrapy/bin/scrapy-admin.py => bin/scrapy-admin.py
This commit is contained in:
parent
ead5466998
commit
584a844e71
|
|
@ -0,0 +1,10 @@
|
|||
include README
|
||||
include AUTHORS
|
||||
include INSTALL
|
||||
include LICENSE
|
||||
include MANIFEST.in
|
||||
recursive-include docs *
|
||||
recursive-include scripts *
|
||||
recursive-include examples *
|
||||
recursive-include extras *
|
||||
recursive-include bin *
|
||||
|
|
@ -3,8 +3,19 @@
|
|||
# This file becomes the install section of the generated spec file.
|
||||
#
|
||||
|
||||
python setup.py install --root=${RPM_BUILD_ROOT} --record="INSTALLED_FILES"
|
||||
python2.5 setup.py install --root=${RPM_BUILD_ROOT} --record="INSTALLED_FILES"
|
||||
|
||||
cat << EOF >> INSTALLED_FILES
|
||||
/usr/bin/*.py*
|
||||
EOF
|
||||
# Sort the filelist so that directories appear before files. This avoids
|
||||
# duplicate filename problems on some systems.
|
||||
touch DIRS
|
||||
for i in `cat INSTALLED_FILES`; do
|
||||
if [ -f ${RPM_BUILD_ROOT}/$i ]; then
|
||||
echo $i >>FILES
|
||||
fi
|
||||
if [ -d ${RPM_BUILD_ROOT}/$i ]; then
|
||||
echo %dir $i >>DIRS
|
||||
fi
|
||||
done
|
||||
|
||||
# Make sure we match foo.pyo and foo.pyc along with foo.py (but only once each)
|
||||
sed -e "/\.py[co]$/d" -e "s/\.py$/.py*/" DIRS FILES >INSTALLED_FILES
|
||||
|
|
|
|||
|
|
@ -1,9 +1,3 @@
|
|||
[bdist_rpm]
|
||||
doc_files = docs examples extras AUTHORS INSTALL LICENSE README
|
||||
install-script = scripts/rpm-install.sh
|
||||
|
||||
[install]
|
||||
optimize = 1
|
||||
|
||||
[aliases]
|
||||
rpm = bdist_rpm --binary-only clean -a
|
||||
|
|
|
|||
Loading…
Reference in New Issue