X-Git-Url: http://git.osdn.net/view?p=meshio%2Fpymeshio.git;a=blobdiff_plain;f=setup.py;h=d0d0711ad0e4c8288f68a9128de79c4d2901e1bb;hp=39cc6be66474eaa7f86d467f28edfd3ad93104f0;hb=924bae1667aea0f57dd3de11b1248c12bc9a95d1;hpb=7c686cc000243203206007b2bcf5a45ca7dee025 diff --git a/setup.py b/setup.py index 39cc6be..d0d0711 100644 --- a/setup.py +++ b/setup.py @@ -1,21 +1,117 @@ -#from distutils.core import setup -import sys +#!/usr/bin/env python +# coding: utf-8 + from setuptools import setup +import sys +import os +import shutil + +name='pymeshio' +version='2.3.1' +short_description='3d model io library for mqo, pmd, pmx, vmd and vpd' +long_description='''\ +`pymeshio` is a package for 3d model io. +create for blender import/expoert plugin backend. + +Requirements +------------ +* Python 3 +* Python 2.7 + +Features +-------- +* read Metasequioa mqo format +* read/write MikuMikuDance pmd format +* read/write MikuMikuDance pmx format +* read MikuMikuDance vmd format +* read MikuMikuDance vpd format +* convert MikuMikuDance pmd format to MikuMikuDance pmx format +* blender-2.6 import/export plugin + +Install +------- +:: + + $ easy_install pymeshio + or + $ unzip pymeshio-x.x.x.zip + $ cd pymeshio-x.x.x + $ python setup.py install + +Usage +----- +:: + + >>> import pymeshio.pmd.reader + >>> m=pymeshio.pmd.reader.read_from_file('resources/初音ミクVer2.pmd') + >>> print(m) + + >>> import pymeshio.converter + >>> pmx_model=pymeshio.converter.pmd_to_pmx(m) + >>> print(pmx_model) + + >>> import pymeshio.pmx.writer + >>> import io + >>> pymeshio.pmx.writer.write(io.open("out.pmx", "wb"), pmx_model) + True + + +ToDo +-------- + +* exporter for pmx + + +New +------- +2.3.1 (2011-10-15) +~~~~~~~~~~~~~~~~~~ +* bug fix(pmd_to_pmx RigidBody.shape_position) +* implement pmx_importer + +2.2.4 (2011-10-13) +~~~~~~~~~~~~~~~~~~ +* bug fix(__init__ param) +* fix blender-2.5 plugin for blender-2.6 + +''' + +classifiers=[ + 'Programming Language :: Python :: 3', + 'License :: OSI Approved :: zlib/libpng License', + 'Topic :: Multimedia :: Graphics :: 3D Modeling', + ] + +# copy pymeshio dir for blender26 plugin +PYMESHIO_DIR_IN_BLENDER26='blender26-meshio/pymeshio' +if os.path.exists(PYMESHIO_DIR_IN_BLENDER26): + shutil.rmtree(PYMESHIO_DIR_IN_BLENDER26) +print("copy pymeshio to %s" % PYMESHIO_DIR_IN_BLENDER26) +shutil.copytree('pymeshio', PYMESHIO_DIR_IN_BLENDER26) + setup( - name='pymeshio', - version='1.8.4', - description='pure python 3d model io library', - keywords=[], + name=name, + version=version, + description=short_description, + long_description=long_description, + classifiers=classifiers, + keywords=['mqo', 'pmd', 'pmx', 'vmd', 'vpd', 'mmd', 'blender'], author='ousttrue', author_email='ousttrue@gmail.com', url='http://meshio.sourceforge.jp/', license='zlib', - package_dir={ - 'pymeshio': 'blender25-meshio/pymeshio' - }, + #package_dir={ + # 'pymeshio': 'blender25-meshio/pymeshio' + # }, packages=['pymeshio'], test_suite='nose.collector', + tests_require=['Nose'], zip_safe = (sys.version>="2.5"), # <2.5 needs unzipped for -m to work + entry_points = { + 'console_scripts': [ + 'pmd2pmx = pymeshio.main:pmd_to_pmx', + ] + } )