Skip to content

Commit

Permalink
Agrego scripts instalación automatizada en windows
Browse files Browse the repository at this point in the history
  • Loading branch information
reingart committed Jan 29, 2015
1 parent 7f6b629 commit d1d484a
Show file tree
Hide file tree
Showing 2 changed files with 89 additions and 0 deletions.
60 changes: 60 additions & 0 deletions setup.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
@echo off

rem Instalación y registración de las dependencias para el proyecto PyAfipWs
rem 2015 (c) Mariano Reingart <[email protected]> - Licencia: GPLv3+

rem Nota: Es recomendable ejecutar este programa como Administrador
rem o en un entorno virtual (venv.bat)
rem Ver https://code.google.com/p/pyafipws/wiki/InstalacionCodigoFuente

pip 1> NUL 2> NUL
if %ERRORLEVEL%==9009 (
echo Python 2.7.9 / PIP no ha sido encontrdo
echo Por favor instale: https://www.python.org/ftp/python/2.7.9/python-2.7.9.msi
echo Asegurese que el PATH contenga a C:\Python27 y la carpeta C:\Python27\scripts
pause
start https://www.python.org/ftp/python/2.7.9/python-2.7.9.msi
exit 1
)

echo *** Instalar las dependencias binarias (precompiladas):

pip install http://www.sistemasagiles.com.ar/soft/pyafipws/M2Crypto-0.22.3-cp27-none-win32.whl
pip install http://www.sistemasagiles.com.ar/soft/pyafipws/pywin32-219-cp27-none-win32.whl

echo *** Instalar el resto de las dependencias:

pip install -r requirements.txt

echo *** Registrando componentes...

python wsaa.py --register
python wsfev1.py --register
python wsfexv1.py --register
python wsbfev1.py --register
python wsmtx.py --register

python wscdc.py --register

python pyfepdf.py --register
python pyi25.py --register
python pyemail.py --register

python padron.py --register

python cot.py --register

python wsctgv2.py --register
python wslpg.py --register

python trazamed.py --register
python trazarenpre.py --register
python trazafito.py --register
python trazavet.py --register

echo *** Listo!

echo Para generar el instalador debe descargar e instalar:
echo Nullsoft Scriptable Install System (NSIS): http://nsis.sourceforge.net/

pause
29 changes: 29 additions & 0 deletions venv.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
@echo off

rem Creación del entorno virtual (opcional) para el proyecto PyAfipWs
rem 2015 (c) Mariano Reingart <[email protected]> - Licencia: GPLv3+

rem Nota: Es recomendable ejecutar este programa como Administrador
rem Ver https://code.google.com/p/pyafipws/wiki/InstalacionCodigoFuente

pip 1> NUL 2> NUL
if %ERRORLEVEL%==9009 (
echo Python 2.7.9 / PIP no puede ser ejecutado
echo Por favor instale: https://www.python.org/ftp/python/2.7.9/python-2.7.9.msi
echo Asegurese que el PATH contenga a C:\Python27 y C:\Python27\scripts
pause
start https://www.python.org/ftp/python/2.7.9/python-2.7.9.msi
exit 1
)
echo *** Instalar utilidades de instalación / entorno virtual:

rem pip install --upgrade pip
pip install --upgrade wheel
pip install --upgrade virtualenv

echo *** Crear y activar el entorno virtual venv (en el directorio actual):

virtualenv venv
venv\Scripts\activate

echo *** Listo!, para salir del entorno ejecute deactivate

0 comments on commit d1d484a

Please sign in to comment.