OSDN Git Service

version 2.0.0
[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='2.0.0'
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-only  MikuMikuDance pmx format
22 * read/write MikuMikuDance vmd format
23 * read/write MikuMikuDance vpd format
24
25
26 Setup
27 -----
28 ::
29
30    $ easy_install pymeshio
31    or
32    $ unzip pymeshio-x.x.x.zip
33    $ cd pymeshio-x.x.x
34    $ python setup.py install
35
36 History
37 -------
38 2.0.0 (2011-9-30)
39 ~~~~~~~~~~~~~~~~~~
40 * add pmx loader
41
42     >>> import pymeshio.pmx.loader
43     >>> m=pymeshio.pmx.loader.load('resources/初音ミクVer2.pmx')
44     >>> print(m)
45     <pymeshio.pmx.Model object at 0x0281DD50>
46     >>> print(m.name)
47     初音ミク
48     >>> print(m.english_name)
49     Miku Hatsune
50
51 1.9.2 (2011-9-29)
52 ~~~~~~~~~~~~~~~~~~
53 * add tkinter viewer sample
54
55 1.9.1 (2011-9-23)
56 ~~~~~~~~~~~~~~~~~~
57 * register pypi
58 '''
59
60 classifiers=[
61         'Programming Language :: Python :: 3',
62         'License :: OSI Approved :: zlib/libpng License',
63         'Topic :: Multimedia :: Graphics :: 3D Modeling',
64         ]
65
66 # copy pymeshio dir for blender25 plugin
67 PYMESHIO_DIR_IN_BLENDER='blender25-meshio/pymeshio'
68 if os.path.exists(PYMESHIO_DIR_IN_BLENDER):
69     shutil.rmtree(PYMESHIO_DIR_IN_BLENDER)    
70 print("copy pymeshio to blender-25")
71 shutil.copytree('pymeshio', PYMESHIO_DIR_IN_BLENDER)
72
73 setup(
74         name=name,
75         version=version,
76         description=short_description,
77         long_description=long_description,
78         classifiers=classifiers,
79         keywords=['mqo', 'pmd', 'pmx', 'vmd', 'vpd', 'mmd', 'blender'],
80         author='ousttrue',
81         author_email='ousttrue@gmail.com',
82         url='http://meshio.sourceforge.jp/',
83         license='zlib',
84         #package_dir={
85         #    'pymeshio': 'blender25-meshio/pymeshio'
86         #    },
87         packages=['pymeshio'],
88         test_suite='nose.collector',
89         tests_require=['Nose'],
90         zip_safe = (sys.version>="2.5"),   # <2.5 needs unzipped for -m to work
91         )
92