forked from reingart/pyafipws
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Sando
authored and
Sando
committed
Jun 13, 2019
1 parent
765695d
commit 3528d49
Showing
1 changed file
with
27 additions
and
9 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 |
---|---|---|
|
@@ -8,14 +8,16 @@ | |
"Creador de instalador para PyAfipWs" | ||
|
||
__author__ = "Mariano Reingart ([email protected])" | ||
__copyright__ = "Copyright (C) 2008-2016 Mariano Reingart" | ||
__copyright__ = "Copyright (C) 2008-2019 Mariano Reingart" | ||
|
||
|
||
from distutils.core import setup | ||
import glob | ||
import os | ||
import subprocess | ||
import warnings | ||
import sys | ||
import warnings | ||
|
||
from setuptools import setup | ||
|
||
try: | ||
rev = subprocess.check_output(['hg', 'tip', '--template', '{rev}'], | ||
|
@@ -89,8 +91,8 @@ | |
# add "Microsoft Visual C++ 2008 Redistributable Package (x86)" | ||
if os.path.exists(r"c:\Program Files\Mercurial"): | ||
data_files += [( | ||
".", glob.glob(r'c:\Program Files\Mercurial\msvc*.dll') | ||
+ glob.glob(r'c:\Program Files\Mercurial\Microsoft.VC90.CRT.manifest'), | ||
".", glob.glob(r'c:\Program Files\Mercurial\msvc*.dll') + | ||
glob.glob(r'c:\Program Files\Mercurial\Microsoft.VC90.CRT.manifest'), | ||
)] | ||
# fix permission denied runtime error on win32com.client.gencache.GenGeneratePath | ||
# (expects a __init__.py not pyc, also dicts.dat pickled or _LoadDicts/_SaveDicts will fail too) | ||
|
@@ -105,8 +107,8 @@ | |
|
||
sys.path.insert(0, r"C:\Python27\Lib\site-packages\pythonwin") | ||
WX_DLL = ( | ||
".", glob.glob(r'C:\Python27\Lib\site-packages\pythonwin\mfc*.*') | ||
+ glob.glob(r'C:\Python27\Lib\site-packages\pythonwin\Microsoft.VC90.MFC.manifest'), | ||
".", glob.glob(r'C:\Python27\Lib\site-packages\pythonwin\mfc*.*') + | ||
glob.glob(r'C:\Python27\Lib\site-packages\pythonwin\Microsoft.VC90.MFC.manifest'), | ||
) | ||
else: | ||
WX_DLL = (".", [ | ||
|
@@ -600,14 +602,27 @@ | |
except Exception as e: | ||
warnings.warn("Exception when converting the README format: %s" % e) | ||
|
||
# dependencias | ||
|
||
requires_path = 'requirements.txt' | ||
requires = [] | ||
|
||
if os.path.isfile(requires_path): | ||
with open(requires_path) as f: | ||
requires = f.read().splitlines() | ||
|
||
dependency_links = ['https://github.com/pysimplesoap/pysimplesoap/tarball/stable_py3k#egg=pysimplesoap', ] | ||
# otras url probadas | ||
# 'https://github.com/pysimplesoap/pysimplesoap/archivo/stable_py3k.zip#egg=pysimplesoap', | ||
# 'git+https://github.com/pysimplesoap/pysimplesoap.git@stable_py3k#egg=pysimplesoap', | ||
|
||
setup(name="PyAfipWs", | ||
version=__version__, | ||
description=desc, | ||
long_description=long_desc, | ||
author="Mariano Reingart", | ||
author_email="[email protected]", | ||
url="https://github.com/reingart/pyafipws" if not 'py2exe' in sys.argv | ||
url="https://github.com/reingart/pyafipws" if 'py2exe' not in sys.argv | ||
else "http://www.sistemasagiles.com.ar", | ||
license="GNU GPL v3+", | ||
options=opts, | ||
|
@@ -632,5 +647,8 @@ | |
"Topic :: Software Development :: Object Brokering", | ||
], | ||
keywords="webservice electronic invoice pdf traceability", | ||
**kwargs | ||
**kwargs, | ||
install_requires=requires, | ||
dependency_links=dependency_links, | ||
zip_safe=False, | ||
) |