Fixes dependencies for install using pip without need of compilation

This commit is contained in:
Antonio de la Rosa 2016-10-11 22:14:24 +02:00
parent b5a0cce9e3
commit 0eca051e67
2 changed files with 10 additions and 2 deletions

View file

@ -1,8 +1,15 @@
import os import os
import sys
from pathlib import Path from pathlib import Path
from paramecio.cromosoma.corefields import CharField from paramecio.cromosoma.corefields import CharField
from paramecio.citoplasma.httputils import GetPostFiles from paramecio.citoplasma.httputils import GetPostFiles
from PIL import Image try:
from PIL import Image
except:
print("Unexpected error:", sys.exc_info()[0])
raise
from uuid import uuid4 from uuid import uuid4
#from paramecio.cromosoma.extraforms.fileform import FileForm #from paramecio.cromosoma.extraforms.fileform import FileForm

View file

@ -9,6 +9,7 @@ if sys.version_info < (3, 3):
raise NotImplementedError("Sorry, you need at least Python 3.3 to use paramecio.") raise NotImplementedError("Sorry, you need at least Python 3.3 to use paramecio.")
#import paramecio #import paramecio
# Pillow should be installed after if you need ImageField
setup(name='paramecio', setup(name='paramecio',
version='0.1.2', version='0.1.2',
@ -19,7 +20,7 @@ setup(name='paramecio',
url='http://paramecioproject.com/', url='http://paramecioproject.com/',
packages=['paramecio'], packages=['paramecio'],
include_package_data=True, include_package_data=True,
install_requires=['bottle', 'mako', 'passlib', 'bcrypt', 'pymysql', 'sqlalchemy', 'Pillow', 'beaker>=1.8.0', 'itsdangerous', 'colorama','cherrypy', 'arrow'], install_requires=['bottle', 'mako', 'passlib', 'bcrypt', 'pymysql', 'sqlalchemy', 'beaker>=1.8.0', 'itsdangerous', 'colorama','cherrypy', 'arrow'],
entry_points={'console_scripts': [ entry_points={'console_scripts': [
'paramecio = paramecio.console:start', 'paramecio = paramecio.console:start',
]}, ]},