-
Notifications
You must be signed in to change notification settings - Fork 24
/
setup.py
42 lines (40 loc) · 1.29 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/usr/bin/env python
from setuptools import setup, find_packages
import elfinder
# Try to detect if we have Pillow installed.
imaging_library = list()
try:
import Image # PIL does this, Pillow does not.
except ImportError:
# Check to see if Pillow is installed...
try:
from PIL import Image
except ImportError:
# Prefer Pillow to PIL
imaging_library.append('Pillow>=2.0.0')
setup(
name='yawd-elfinder',
url='http://yawd.eu/open-source-projects/yawd-elfinder/',
version = elfinder.__version__,
description='Elfinder-based file management solution for Django',
long_description=open('README.rst', 'rt').read(),
author='yawd',
author_email='[email protected]',
packages=find_packages(),
license='BSD',
classifiers = [
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries'
],
include_package_data = True,
install_requires = [
"Django>=1.5",
"python-magic==0.4.3"
] + imaging_library,
)