Project

General

Profile

« Previous | Next » 

Revision 284

Makefile: Added python-dateutil dependency

View differences:

Makefile
47 47

  
48 48
#####
49 49

  
50
core: _not_file $(call forOs,postgres) postgres_user db
50
core: _not_file $(call forOs,python postgres) postgres_user db
51 51
	@$(done)
52 52

  
53 53
rm_core: _not_file rm_db rm_postgres_user
54 54

  
55 55
reinstall_core: _not_file rm_core core
56 56

  
57
python-Linux: _not_file
58
	-sudo apt-get install python-dev python-dateutil python-pip
59

  
60
python-Darwin: _not_file
61
	@echo $(emph)'Installing python-dateutil on Mac OS X:'$(endEmph)
62
	@echo 'Download it: http://labix.org/download/python-dateutil/python-dateutil-1.5.tar.gz'
63
	@echo 'Extract the archive'
64
	@echo 'Change to the directory of the extracted files'
65
	@echo 'Run python setup.py build'
66
	@echo 'Run sudo python setup.py install'
67
	@echo "Run python -c 'import dateutil'"
68
	@$(wait)
69

  
57 70
postgres-Linux: _not_file
58
	-sudo apt-get install postgresql python-dev libpq-dev
59
	-sudo apt-get install python-pip && sudo pip install psycopg2
71
	-sudo apt-get install postgresql libpq-dev
72
	-sudo pip install psycopg2
60 73

  
61 74
postgres-Darwin: _not_file
62 75
	@echo $(emph)'Installing PostgreSQL on Mac OS X:'$(endEmph)
......
109 122
	@echo 'Download it using "latest version" link at http://sourceforge.net/projects/mysql-python/files/'
110 123
	@echo 'Extract the archive'
111 124
	@echo '(From http://www.rustyrazorblade.com/2011/11/installing-mysqldb-on-macos-lion/:)'
112
	@echo 'Run sudo ln -s /usr/local/mysql/lib/libmysqlclient.18.dylib /usr/lib/libmysqlclient.18.dylib'
113
	@echo 'Run sudo ln -s /usr/local/mysql/lib /usr/local/mysql/lib/mysql'
125
	@echo 'Run ln -s /usr/local/mysql/lib/libmysqlclient.18.dylib /usr/lib/libmysqlclient.18.dylib'
126
	@echo 'Run ln -s /usr/local/mysql/lib /usr/local/mysql/lib/mysql'
114 127
	@echo '(From http://blog.infoentropy.com/MySQL-python_EnvironmentError_mysql_config_not_found:)'
115 128
	@echo 'Edit site.cfg and change the line like "mysql_config = " to "mysql_config = /usr/local/mysql/bin/mysql_config"'
116 129
	@echo '(From http://www.mangoorange.com/2008/08/01/installing-python-mysqldb-122-on-mac-os-x/:)'
117 130
	@echo 'Change to the directory of the extracted files'
118
	@echo 'Run sudo python setup.py clean'
119
	@echo 'Run sudo python setup.py build'
131
	@echo 'Run python setup.py clean'
132
	@echo 'Run python setup.py build'
120 133
	@echo 'Run sudo python setup.py install'
121 134
	@echo "Run python -c 'import MySQLdb'"
122 135
	@$(wait)

Also available in: Unified diff