-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsetup.py
More file actions
42 lines (35 loc) · 1.31 KB
/
setup.py
File metadata and controls
42 lines (35 loc) · 1.31 KB
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
# Basic Setup Script
# Requires Python3
# Written by Joseph Jeffers
import os
import shutil
from setuptools import setup, find_packages
from setuptools.command.install import install
class SetupDBFolder(install):
def run(self):
# Find the database folder
base = os.getenv('GWS_STORE', os.path.expandvars('$HOME/.gws/'))
# Make folders for the default data sets
zmDir = os.path.join(base,'maize')
atDir = os.path.join(base, 'ath')
os.makedirs(zmDir, exist_ok=True)
os.makedirs(atDir, exist_ok=True)
# Put the default data in the folders
shutil.copy('genewordsearch/databases/maize/geneNotes.p', zmDir)
shutil.copy('genewordsearch/databases/maize/totalWordCounts.p', zmDir)
shutil.copy('genewordsearch/databases/ath/geneNotes.p', atDir)
shutil.copy('genewordsearch/databases/ath/totalWordCounts.p', atDir)
# Run the install process
install.run(self)
setup(name='GeneWordSearch',
version='2.5',
license='GPLv2',
description='Annotation finder for genes.',
author='Joe Jeffers',
author_email='jeffe174@umn.edu',
url='https://github.com/monprin/geneWordSearch/',
packages=find_packages(),
cmdclass={'install': SetupDBFolder},
long_description=open('README.rst').read(),
scripts=['bin/gws'],
install_requires=['numpy','scipy'])