OSDN Git Service

add pmx_test
[meshio/pymeshio.git] / setup.py
1 from setuptools import setup
2 import sys
3 import os
4 import shutil
5
6 name='pymeshio'
7 version='1.9.3'
8 short_description='pure python 3d model io library'
9 long_description='''\
10 `pymeshio` is a package for 3d model io.
11 create for blender import/expoert plugin backend.
12
13 Requirements
14 ------------
15 * Python 3
16
17 Features
18 --------
19 * read/write Metasequioa mqo format
20 * read/write MikuMikuDance pmd format
21 * read/write MikuMikuDance vmd format
22 * read/write MikuMikuDance vpd format
23
24 Setup
25 -----
26 ::
27
28    $ easy_install pymeshio
29    or
30    $ unzip pymeshio-x.x.x.zip
31    $ cd pymeshio-x.x.x
32    $ python setup.py install
33
34 History
35 -------
36 1.9.3 (2011-9-30)
37 ~~~~~~~~~~~~~~~~~~
38 * refactoring
39
40 1.9.2 (2011-9-29)
41 ~~~~~~~~~~~~~~~~~~
42 * add tkinter viewer sample
43
44 1.9.1 (2011-9-23)
45 ~~~~~~~~~~~~~~~~~~
46 * register pypi
47 '''
48
49 classifiers=[
50         'Programming Language :: Python :: 3',
51         'License :: OSI Approved :: zlib/libpng License',
52         'Topic :: Multimedia :: Graphics :: 3D Modeling',
53         ]
54
55 # copy pymeshio dir for blender25 plugin
56 PYMESHIO_DIR_IN_BLENDER='blender25-meshio/pymeshio'
57 if os.path.exists(PYMESHIO_DIR_IN_BLENDER):
58     shutil.rmtree(PYMESHIO_DIR_IN_BLENDER)    
59 print("copy pymeshio to blender-25")
60 shutil.copytree('pymeshio', PYMESHIO_DIR_IN_BLENDER)
61
62 setup(
63         name=name,
64         version=version,
65         description=short_description,
66         long_description=long_description,
67         classifiers=classifiers,
68         keywords=['mqo', 'pmd', 'vmd', 'vpd', 'mmd', 'blender'],
69         author='ousttrue',
70         author_email='ousttrue@gmail.com',
71         url='http://meshio.sourceforge.jp/',
72         license='zlib',
73         #package_dir={
74         #    'pymeshio': 'blender25-meshio/pymeshio'
75         #    },
76         packages=['pymeshio'],
77         test_suite='nose.collector',
78         tests_require=['Nose'],
79         zip_safe = (sys.version>="2.5"),   # <2.5 needs unzipped for -m to work
80         )
81