File: setup.py

package info (click to toggle)
xraydb 4.4.7%2Bds1-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 50,636 kB
  • sloc: python: 4,557; makefile: 78; sh: 7
file content (37 lines) | stat: -rw-r--r-- 1,234 bytes parent folder | download
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
#!/usr/bin/env python
import os
import sys
import shutil
from setuptools import setup
import versioneer

dbfile = 'xraydb.sqlite'
matfile = 'materials.dat'

dest_dbfile = os.path.join('xraydb', dbfile)
src_dbfile = os.path.join('..', dbfile)
if (not os.path.exists(dest_dbfile) and
    os.path.exists(src_dbfile)):
    shutil.copy(src_dbfile, dest_dbfile)

desc="X-ray Reference Data for the Elements using SQLite"

setup(name = 'xraydb',
      version=versioneer.get_version(),
      cmdclass=versioneer.get_cmdclass(),
      author='Matthew Newville',
      author_email='newville@cars.uchicago.edu',
      url='http://github.com/xraypy/XrayDB',
      download_url='http://github.com/xrapy/XrayDB',
      license='public domain',
      description=desc,
      long_description=desc,
      platforms=('Windows', 'Linux', 'Mac OS X'),
      classifiers=['Intended Audience :: Science/Research',
                   'Operating System :: OS Independent',
                   'Programming Language :: Python',
                   'Topic :: Scientific/Engineering'],
      install_requires=('sqlalchemy', 'numpy', 'scipy'),
      package_dir={'xraydb': 'xraydb'},
      packages=['xraydb'],
      package_data={'xraydb': [dbfile, matfile]})