|
1 | | -#!/usr/bin/env python |
2 | | -#Last-modified: 17 Jul 2017 11:00:55 AM |
3 | | - |
4 | | -# Module/Scripts Description |
5 | | -# |
6 | | -# Copyright (c) 2008 Yunfei Wang <[email protected]> |
7 | | -# |
8 | | -# This code is free software; you can redistribute it and/or modify it |
9 | | -# under the terms of the BSD License (see the file COPYING included with |
10 | | -# the distribution). |
11 | | -# |
12 | | -# @status: experimental |
13 | | -# @version: 1.1.0 |
14 | | -# @author: Yunfei Wang |
15 | | - |
16 | | - |
17 | | - |
18 | | - |
| 1 | +#! /usr/bin/env python |
| 2 | +# coding: utf-8 |
| 3 | +# branch: dev |
| 4 | +# version: 1.0.1 |
| 5 | +# license: BSD,AGPL |
| 6 | +# author: Yunfei Wang ([email protected]), |
| 7 | +# Baochen Yang ([email protected]) |
19 | 8 |
|
20 | 9 |
|
21 | 10 | import os,sys |
22 | 11 | from setuptools import setup, find_packages, Extension |
23 | 12 |
|
24 | | - |
| 13 | +def get_py_ver(): |
| 14 | + retrun float(sys.version[:3]) |
25 | 15 |
|
26 | 16 | if __name__ == '__main__': |
27 | 17 |
|
28 | | - # includepy = "%s/include/python%s" % (sys.prefix, sys.version[:3]) |
| 18 | + # decsription |
29 | 19 | with open("README.rst",'r') as fh: |
30 | 20 | long_description = fh.read() |
31 | 21 | idx = long_description.find('\n') |
32 | 22 | description = long_description[:idx].rstrip() |
33 | | - # ngsplot version |
| 23 | + |
| 24 | + # version |
34 | 25 | PROG, VERSION = 'pycircos','1.0.1' |
35 | 26 |
|
36 | 27 | # Compile Kent lib |
37 | 28 | if 'clean' in sys.argv: |
38 | | - print >>sys.stderr, "Clean dist and egg info ..." |
| 29 | + print >> sys.stderr, "Clean dist and egg info ..." |
39 | 30 | os.system('if [ -d dist ]; then rm -rf dist; fi') |
40 | 31 | os.system('if [ -f {0}.egg-info ]; then rm {0}.egg-info; fi'.format(PROG)) |
41 | 32 | os.system('if [ -d {0}.egg-info ]; then rm -rf {0}.egg-info; fi'.format(PROG)) |
|
50 | 41 | elif float(sys.version[:3]) == 2.7: |
51 | 42 | print("Sorry, We do recommand that you shoud move to a new version fo python than Python3.5+ ") |
52 | 43 | package_dir={PROG:'v2'} |
53 | | - install_requires.append(["matplotlib == 2.0.2"]) |
| 44 | + install_requires.append(["matplotlib >= 2.0.2"]) |
54 | 45 |
|
55 | 46 | elif float(sys.version[:3]) >= 3.5: |
56 | 47 | package_dir={PROG:'v3'} |
|
0 commit comments