-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·39 lines (35 loc) · 1.21 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
#! /usr/bin/env python
from os import walk
from os.path import join as pjoin
from setuptools import setup, find_packages
from distutils.core import Extension
from distutils.util import convert_path
def find_all_files(where, ignore=lambda x: False):
all_files = []
for path, dirs, files in walk(convert_path(where)):
all_files.extend(pjoin(path[len(where)+1:], f)
for f in files if not ignore(f))
return all_files
setup(
name='mcviz.examples',
version='0.1',
description="A package to contain example inputs for mcviz",
classifiers=[
'Development Status :: 1 - Alpha',
'Intended Audience :: Physicists :: Developers',
'GNU Affero General Public License v3',
],
keywords='mcviz hep examples hepmc montecarlo',
author='Johannes Ebke and Peter Waller',
author_email='[email protected]',
url='http://mcviz.net',
license='Affero GPLv3',
namespace_packages=["mcviz"],
packages=find_packages(),
package_data={
"mcviz.examples.inputs" :
find_all_files("mcviz/examples/inputs",
lambda f: f.endswith(".py") or
f.endswith(".pyc")),
}
)