3393
by Timothy Bond
Following the move from svn to bzr we change the nature of inclusion of these |
1 |
from distutils.core import setup |
2 |
from distutils.extension import Extension |
|
3 |
import os |
|
4 |
import os.path |
|
5 |
import glob |
|
6 |
||
7 |
try: |
|
8 |
destdir = os.environ["DESTDIR"] |
|
9 |
except KeyError: |
|
10 |
destdir = "" |
|
11 |
||
12 |
# Get all the plugin directories we have
|
|
13 |
plugin_dirs = [dir for dir in os.listdir('plugins') if os.path.isdir(os.path.join('plugins', dir)) and dir[0] != '.'] |
|
14 |
plugin_data_files = [] |
|
15 |
for plugin in plugin_dirs: |
|
16 |
plugin_data_files.append((destdir + "@prefix@/share/diamond/plugins/" + plugin, |
|
17 |
glob.glob('plugins/' + plugin + '/*.py'))) |
|
18 |
||
19 |
setup( |
|
20 |
name='diamond', |
|
21 |
version='1.0', |
|
22 |
description="Fluidity preprocessor", |
|
23 |
author = "The ICOM team", |
|
24 |
author_email = "patrick.farrell@imperial.ac.uk", |
|
25 |
url = "http://amcg.ese.ic.ac.uk", |
|
26 |
packages = ['diamond'], |
|
27 |
package_dir = {'diamond': 'diamond'}, |
|
28 |
scripts=["bin/diamond"], |
|
29 |
data_files = [(destdir + "@prefix@/share/diamond/gui", ["gui/gui.glade", "gui/diamond.svg"])] + |
|
30 |
plugin_data_files
|
|
31 |
)
|
|
32 |