setup.py 2.74 KB
Newer Older
Eric Coissac's avatar
Eric Coissac committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
#! /usr/bin/env python
#
# Install script
#
#

import sys
import os
import os.path
import re
import glob

from os import path

#
# Add to the python path the directory containing the extensions
# of distutils
#

20 21 22 23 24

PACKAGE = "ORG.asm"
VERSION = "00.01.000"


Eric Coissac's avatar
Eric Coissac committed
25 26
sys.path.append('distutils.ext')

27 28


Eric Coissac's avatar
Eric Coissac committed
29

Eric Coissac's avatar
Eric Coissac committed
30 31


Eric Coissac's avatar
Eric Coissac committed
32 33
AUTHOR  = 'Eric Coissac'
EMAIL   = 'eric@coissac.eu'
34
URL     = 'metabarcoding.org/orgasm'
Eric Coissac's avatar
Eric Coissac committed
35 36 37 38 39
LICENSE = 'CeCILL-V2'

SRC                = 'python'
CSRC               = 'src'

40 41

#CEXES.extend([])
Eric Coissac's avatar
Eric Coissac committed
42 43 44 45 46 47 48 49 50 51 52 53

if __name__=="__main__":

    from obidistutils.serenity import serenity_mode
    
    serenity_mode(PACKAGE,VERSION)
    
    from obidistutils.core import setup
    from obidistutils.core import CTOOLS
    from obidistutils.core import CEXES
    from obidistutils.core import FILES
    
54 55 56
    DEPRECATED_SCRIPTS=['orgasmu',
                        'orgasmg',
                        'orgasml'
Eric Coissac's avatar
Eric Coissac committed
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 89
                       ]
    
    CTOOLS.extend([('buildcomplement',{"sources":["src/buildcomplement.c"]}),
                   ('buildcode',{"sources":["src/buildcode.c"]}),
                   ('buildexpand8bits',{"sources":["src/buildexpand8bits.c"]})])
    
    
    # Files starting with an @ are built by the setup script 
    # according to the FILES rules
    
    CEXES.extend([('orgasmi',{"sources":["src/orgasmi.c",
                                         "src/buffer.c",
                                         "src/buildindex.c",
                                         "@code16bits.c",
                                         "@codecomp.c",
                                         "src/compsort.c",
                                         "src/debug.c",
                                         "src/decode.c",
                                         "src/encode.c",
                                         "src/fastq.c",
                                         "src/indexinput.c",
                                         "src/indexoutput.c",
                                         "src/load.c",
                                         "src/lookfor.c",
                                         "src/malloc.c",
                                         "src/fgetln.c",
                                         "src/sort.c"
                                         ]})])    
    
    FILES.extend([('codecomp.c','buildcomplement','%(prog)s > %(dest)s'),
                  ('code16bits.c','buildcode','%(prog)s > %(dest)s'),
                  ('expand8bits.c','buildexpand8bits','%(prog)s > %(dest)s')
                  ])
Eric Coissac's avatar
Eric Coissac committed
90 91 92 93 94 95 96 97 98 99
       
    setup(name="ORG.asm",
          description="Scripts and library for organelle assembling",
          version=VERSION,
          author=AUTHOR,
          author_email=EMAIL,
          license=LICENSE,
          url=URL,
          python_src=SRC,
          sse='sse2')