-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathsetup.py
40 lines (34 loc) · 1.2 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
40
import os
try:
from setuptools import setup
except ImportError:
try:
from .python.ez_setup import use_setuptools
use_setuptools()
except ImportError:
raise ImportError(
"python_codon_tables could not be installed, "
"probably because neither setuptools nor ez_setup "
"are installed on this computer. \nInstall ez_setup "
"([sudo] pip install ez_setup) and try again."
)
from setuptools import setup, find_packages
with open(os.path.join("codon_usage_data", "version.txt"), "r") as f:
__version__ = f.read()
with open(os.path.join("python_codon_tables", "README.rst"), "r") as f:
long_description = f.read()
setup(
name="python_codon_tables",
version=__version__,
author="Zulko",
description="Codon Usage Tables for Python, from kazusa.or.jp",
url="https://github.com/Edinburgh-Genome-Foundry/codon-usage-tables",
long_description=long_description,
license="Public Domain",
keywords="DNA codon usage",
packages=find_packages(exclude="docs"),
include_package_data=True,
package_data={
"python_codon_tables": ["../codon_usage_data/*", "../codon_usage_data/**/*"]
},
)