-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py.in
88 lines (83 loc) · 3.17 KB
/
setup.py.in
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# vim: set expandtab ts=4 sw=4:
# import distutils.core
# distutils.core.DEBUG = True
# TODO: remove distlib monkey patch when the wheel package
# implements PEP 426's pydist.json
from distlib import metadata
metadata.METADATA_FILENAME = "metadata.json"
from setuptools import setup, Extension
import os, os.path, sys
description = """
Sample code for implementing ChimeraX bundle.
"""
# Assume Python executable is in ROOT/bin/python
# and make include directory be ROOT/include
root = os.path.dirname(os.path.dirname(sys.executable))
inc_dir = os.path.join(root, "include")
lib_dir = os.path.join(root, "lib")
if sys.platform == "darwin":
# Tested with macOS 10.12
libraries = []
compiler_flags = ["-std=c++11", "-stdlib=libc++"]
elif sys.platform == "win32":
# Tested with Cygwin
libraries = ["libatomstruct"]
compiler_flags = []
else:
# Presumably Linux
# Tested with Ubuntu 16.04 LTS running in
# a singularity container on CentOS 7.3
libraries = []
compiler_flags = ["-std=c++11"]
ext_mod = Extension("chimerax.sample._sample",
define_macros=[("MAJOR_VERSION", 0),
("MINOR_VERSION", 1)],
extra_compile_args=compiler_flags,
include_dirs=[inc_dir],
library_dirs=[lib_dir],
libraries=libraries,
sources=[]
#sources=["src/_sample.cpp"]
)
setup(
name="BUNDLE_NAME",
version="BUNDLE_VERSION", # PEP 440, should match Development Status below
description="Sample code for implementing ChimeraX bundle", # one line synopsis
long_description=description, # see above
author="UCSF RBVI",
author_email="[email protected]",
url="https://www.rbvi.ucsf.edu/chimerax/",
python_requires=">= 3.5",
package_dir={
"PKG_NAME": "src",
},
packages=[
"PKG_NAME",
],
#ext_modules=[ext_mod],
install_requires=[
# list dependences on non-standard Python packages incl. ChimeraX ones
"ChimeraX-Core >= 0.1",
],
classifiers=[
# From https://pypi.python.org/pypi?%3Aaction=list_classifiers
# and our own ChimeraX classifiers.
"Development Status :: 2 - Pre-Alpha", # TODO: update as appropriate
"Environment :: MacOS X :: Aqua",
"Environment :: Win32 (MS Windows)",
"Environment :: X11 Applications",
"Framework :: ChimeraX",
"Intended Audience :: Science/Research",
"License :: Free for non-commercial use",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows :: Windows 10",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering :: Visualization",
"Topic :: Scientific/Engineering :: Chemistry",
"Topic :: Scientific/Engineering :: Bio-Informatics",
"ChimeraX :: Bundle :: General :: 1,1 :: PKG_NAME :: chimerax.xlinkanalyzer :: ",
"ChimeraX :: Command :: xla show :: General :: Log model atom and bond counts",
"ChimeraX :: Tool :: Xlink Analyzer :: General :: dsfdfgdfg",
],
)