Last change
on this file since 32:43c12f3bc1bd was 30:0cdc4f160073, checked in by Borja Lopez <borja@…>, 12 years ago |
Fixed the link to the scheme in the README file so the image appears on bitbucket's overview page. Acvitated the setup.py code that copies the config files to proper places when installing from sources
|
File size:
977 bytes
|
Line | |
---|
1 | import os
|
---|
2 | from distutils.core import setup
|
---|
3 |
|
---|
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 |
|
---|
15 | setup(
|
---|
16 | name='mailjam',
|
---|
17 | version='0.1.0',
|
---|
18 | author='Francisco de Borja Lopez Rio',
|
---|
19 | author_email='borja@codigo23.net',
|
---|
20 | packages=['mailjam'],
|
---|
21 | url='https://bitbucket.org/codigo23/mailjam',
|
---|
22 | license='BSD licence, see LICENSE',
|
---|
23 | description='Mailing lists management software',
|
---|
24 | long_description=open('README').read(),
|
---|
25 | scripts=['bin/mailjam-server', 'bin/mailjam-mta', 'bin/mailjam-cli'],
|
---|
26 | data_files=[(proper_etc_path()+'mailjam', ['conf/mailjam.conf',
|
---|
27 | 'conf/mailjam-mta.conf',
|
---|
28 | 'conf/mailjam-cli.conf']),
|
---|
29 | ]
|
---|
30 | )
|
---|
Note:
See
TracBrowser
for help on using the repository browser.