[pyftpdlib] r1241 committed - Fix issue 277: provide a make file also for Windows.

0 views
Skip to first unread message

pyft...@googlecode.com

unread,
Dec 30, 2013, 6:15:04 AM12/30/13
to pyftpdli...@googlegroups.com
Revision: 1241
Author: g.rodola
Date: Mon Dec 30 11:14:47 2013 UTC
Log: Fix issue 277: provide a make file also for Windows.
http://code.google.com/p/pyftpdlib/source/detail?r=1241

Added:
/trunk/make.bat
Modified:
/trunk/HISTORY
/trunk/MANIFEST.in

=======================================
--- /dev/null
+++ /trunk/make.bat Mon Dec 30 11:14:47 2013 UTC
@@ -0,0 +1,81 @@
+@echo off
+
+rem
==========================================================================
+rem Shortcuts for various tasks, emulating UNIX "make" on Windows.
+rem It is primarly intended as a shortcut for installing pyftpdlib and
running
+rem tests (just run "make.bat test").
+rem By default C:\Python27\python.exe is used.
+rem To use another Python version run:
+rem set PYTHON=C:\Python24\python.exe & make.bat test
+rem
==========================================================================
+
+
+if "%PYTHON%" == "" (
+ set PYTHON=C:\Python27\python.exe
+)
+if "%TSCRIPT%" == "" (
+ set TSCRIPT=test\test_ftpd.py
+)
+
+
+if "%1" == "help" (
+ :help
+ echo Run `make ^<target^>` where ^<target^> is one of:
+ echo clean clean build files
+ echo install compile and install
+ echo uninstall uninstall
+ echo test run tests
+ echo test-contrib run contrib tests
+ goto :eof
+)
+
+if "%1" == "clean" (
+ :clean
+ for /r %%R in (__pycache__) do if exist %%R (rmdir /S /Q %%R)
+ for /r %%R in (*.pyc) do if exist %%R (del /s %%R)
+ for /r %%R in (*.orig) do if exist %%R (del /s %%R)
+ for /r %%R in (*.bak) do if exist %%R (del /s %%R)
+ for /r %%R in (*.rej) do if exist %%R (del /s %%R)
+ if exist pyftpdlib.egg-info (rmdir /S /Q pyftpdlib.egg-info)
+ if exist build (rmdir /S /Q build)
+ if exist dist (rmdir /S /Q dist)
+ goto :eof
+)
+
+if "%1" == "install" (
+ :install
+ if %PYTHON%==C:\Python24\python.exe (
+ %PYTHON% setup.py build -c mingw32 install
+ ) else if %PYTHON%==C:\Python25\python.exe (
+ %PYTHON% setup.py build -c mingw32 install
+ ) else (
+ %PYTHON% setup.py build install
+ )
+ goto :eof
+)
+
+if "%1" == "uninstall" (
+ :uninstall
+ rmdir /S /Q %PYTHON%\Lib\site-packages\pyftpdlib*
+ goto :eof
+)
+
+if "%1" == "test" (
+ :test
+ call :install
+ %PYTHON% %TSCRIPT%
+ goto :eof
+)
+
+if "%1" == "test-contrib" (
+ :test
+ call :install
+ %PYTHON% test\test_contrib.py
+ goto :eof
+)
+
+goto :help
+
+:error
+ echo last command returned an error; exiting
+ exit /b %errorlevel%
=======================================
--- /trunk/HISTORY Thu Nov 7 22:17:19 2013 UTC
+++ /trunk/HISTORY Mon Dec 30 11:14:47 2013 UTC
@@ -4,6 +4,15 @@
History
=======

+Version: 1.3.1 - Date: XXXX-XX-XX
+---------------------------------
+
+ENHANCEMENTS
+
+ * #277: added a make file for running tests and for other repetitive tasks
+ (also for Windows).
+
+
Version: 1.3.0 - Date: 2013-11-07
---------------------------------

=======================================
--- /trunk/MANIFEST.in Tue Feb 19 11:40:35 2013 UTC
+++ /trunk/MANIFEST.in Mon Dec 30 11:14:47 2013 UTC
@@ -5,6 +5,8 @@
include HISTORY
include INSTALL
include LICENSE
+include make.bat
+include Makefile
include MANIFEST.in
include README
include setup.py
Reply all
Reply to author
Forward
0 new messages