Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Copy MySQL-Python into a Windows virtualenv.
@REM adapted from
if ["%VIRTUAL_ENV%"]==[""] echo Must run under a Virtualenv && goto :error
set SRCDIR=c:\Python27\Lib\site-packages
pushd "%VIRTUAL_ENV%\Lib\site-packages"
xcopy /ydfsi %SRCDIR%\MySQLdb MySQLdb
xcopy /ydfsi %SRCDIR%\_mysql* .
xcopy /ydfsi %SRCDIR%\MySQL_python-1.2.3-py2.7.egg-info MySQL_python-1.2.3-py2.7.egg-info
goto :eof
exit /b 1
goto :eof
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment