Rev | Line | |
---|
[15] | 1 | import os
|
---|
[3] | 2 | from distutils.core import setup
|
---|
| 3 |
|
---|
[15] | 4 | def proper_etc_path():
|
---|
| 5 | # Yes, I'm ommiting windoze...
|
---|
| 6 | BSDs = ['FreeBSD', 'OpenBSD', 'NetBSD', 'DragonFlyBSD']
|
---|
| 7 | linux = ['Linux']
|
---|
| 8 | osx = ['Darwin']
|
---|
| 9 | os_name = os.uname()[0]
|
---|
| 10 | if os_name in BSDs:
|
---|
| 11 | return '/usr/local/etc/'
|
---|
| 12 | if os_name in linux or os_name in osx:
|
---|
| 13 | return '/etc/'
|
---|
| 14 |
|
---|
[3] | 15 | setup(
|
---|
[16] | 16 | name='mailjam',
|
---|
[3] | 17 | version='0.1.0',
|
---|
| 18 | author='Francisco de Borja Lopez Rio',
|
---|
| 19 | author_email='borja@codigo23.net',
|
---|
[16] | 20 | packages=['mailjam'],
|
---|
| 21 | url='https://bitbucket.org/codigo23/mailjam',
|
---|
[3] | 22 | license='BSD licence, see LICENCE',
|
---|
| 23 | description='Mailing lists management software',
|
---|
| 24 | long_description=open('README').read(),
|
---|
[16] | 25 | scripts=['bin/mailjam-server', 'bin/mailjam-mta'],
|
---|
| 26 | #data_files=[(proper_etc_path()+'mailjam', ['conf/mailjam.conf',
|
---|
| 27 | # 'conf/mailjam-mta.conf']),
|
---|
[15] | 28 | # ]
|
---|
[3] | 29 | )
|
---|
Note:
See
TracBrowser
for help on using the repository browser.