# # MySQL-python # # Written as a starting point for the Panda guys... # # Saul Youssef, October 2005 # packageName('MySQL-python') version('1.2.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')") # #-- C compiler # gccVersionGE('3') downloadUntar('http://unc.dl.sourceforge.net/sourceforge/mysql-python/MySQL-python-1.2.0.tar.gz','TAR') cd('$TAR') shell('export mysqlclient="mysqlclient"; python setup.py build; python setup.py install') #shell('python setup.py build') #shell('python setup.py install') cd() path('mysql/lib/mysql','LD_LIBRARY_PATH')