-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathsetup.py
51 lines (46 loc) · 1.8 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
43
44
45
46
47
48
49
50
51
# coding: utf-8
from distutils.core import setup
import os
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
# Hard linking doesn't work inside VirtualBox shared folders. This means that
# you can't use tox in a directory that is being shared with Vagrant,
# since tox relies on `python setup.py sdist` which uses hard links. As a
# workaround, disable hard-linking if setup.py is a descendant of /vagrant.
# See
# https://stackoverflow.com/questions/7719380/python-setup-py-sdist-error-operation-not-permitted
# for more details.
if os.path.abspath(__file__).split(os.path.sep)[1] == 'vagrant':
del os.link
setup(
name='django-multilingual-search',
version='2.4.1',
packages=['multilingual'],
url='https://github.com/sbaechler/django-multilingual-search',
license='BSD',
author='Simon Bächler',
author_email='b@chler.com',
description='A drop-in replacement for the Haystack Elasticsearch backend which allows '
'multilingual indexes for Django.',
long_description=read('README.rst'),
platforms=['OS Independent'],
install_requires=[
'Django>=1.5',
'django-haystack==2.4.1',
'elasticsearch>=1.6.0,<1.8'
],
classifiers=[
'Development Status :: 5 - Production/Stable',
'License :: OSI Approved :: BSD License',
'Framework :: Django',
'Intended Audience :: Developers',
'Topic :: Internet :: WWW/HTTP :: Indexing/Search',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
]
)