1. JanKanis
  2. wiki2csv


JanKanis  committed 529bb2c

also take out preconfigured bdist options and the setup.py_bdist_ugly_hack.sh script

  • Participants
  • Parent commits 9e980c6
  • Branches default

Comments (0)

Files changed (2)

File setup.py

View file
     'Topic :: Text Processing :: Markup',
     'Topic :: Utilities',
-  options = {'bdist': {'plat_name': 'linux'}},

File setup.py_bdist_ugly_hack.sh

-# a wrapper for "setup.py bdist_dumb"
-# I wanted to include the files differently into the  tar, but haven't figured out how to do that properly. This is an ugly hack but it works. 
-if test ! -x wiki2csv.py
-	echo Error: call this script from the package\'s root directory
-	exit 1
-python setup.py bdist_dumb -p linux --no-hack-warning
-VER=`python setup.py -qV | tail -n +2 -n 1`
-echo Hacking symlinks into wiki2csv-$VER.linux.tar.gz...
-cd dist
-tar -xf wiki2csv-$VER.linux.tar.gz
-cd usr/local/bin/
-mv wiki2csv.py wiki2csv
-ln -s wiki2csv csv2wiki
-cd ../../..
-tar -cf wiki2csv-$VER.linux.tar.gz usr
-rm -r usr
-cd ..
-echo Hacking up wiki2csv-$VER.linux.tar.gz completed