# # MySQL-Python # # Written as a starting point for the Panda guys... # # Saul Youssef, October 2005 # Horst Severini, May 2006 # packageName('MySQL-Python') version('2.0.0') pacmanVersionGE('3.14.1') # #-- "Red Hat Linux" is required according to the documentation # { platformGE('RedHat') OR platformGE('RHEL') OR platformGE('Fedora') OR platformGE('Rocks') } # #-- MySQL requirements # { rpmInstalled('MySQL-devel') OR rpmInstalled('MySQL-shared') OR package('OU:MySQL | versionGE("4.1")') } which('mysql') which('mysql_config') shellOutputGE('mysql --version','myql Ver 12.22 Distrib 3.23') rpmInstalled('zlib') rpmInstalled('openssl') # #-- Python required # #configure("BU:Python | version('2.3.4')") #configure("BU:Python | version('2.4.1')") configure("BU:Python4Panda") # #-- C compiler # gccVersionGE('3') #downloadUntar('http://unc.dl.sourceforge.net/sourceforge/mysql-python/MySQL-python-1.2.0.tar.gz','TAR') downloadUntar('OU/packages/MySQL-python-1.2.0.tar.gz','TAR') cd('$TAR') shell('export mysqlclient="mysqlclient"; python setup.py build; python setup.py install') cd() path('mysql/lib/mysql','LD_LIBRARY_PATH')