forked from reingart/pyafipws
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Agrego scripts instalación automatizada en windows
- Loading branch information
Showing
2 changed files
with
89 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |