Commit 9ee38f81 authored by Olivier Lantsoght's avatar Olivier Lantsoght

[Version][MBsysPy] Synchronization of version number with MBsysC

parent 38a5e441
......@@ -83,6 +83,12 @@ if (FLAG_INTERFACE_CTYPES)
# copy and rename setup.py and readme used to build python package
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/mbs_interface/MBsysPy/setup.py
${CMAKE_CURRENT_BINARY_DIR}/python/setup_MBsysPy.py COPYONLY)
# if it exists, copy the generated version number
if(EXISTS '${CMAKE_CURRENT_SOURCE_DIR}/mbs_interface/MBsysPy/MBsysPyVersion.py')
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/mbs_interface/MBsysPy/MBsysPyVersion.py
${CMAKE_CURRENT_BINARY_DIR}/python/MBsysPy/MBsysPyVersion.py COPYONLY)
endif()
# Redirecting output dirertcory and set RPATH (location of linked libs) as './'
if (APPLE)
# lib directory
......
# -*- coding: utf-8 -*-
"""
-------------------------------
(c) Universite catholique de Louvain, 2019
Creation : 2019 by O. Lantsoght
Last update : 2019
version MBsysC v1.12.0
-------------------------------
Portable Python interface to MBsysC using Ctypes.
"""Portable Python interface to MBsysC using Ctypes.
MBsysC which is a scientific tool dedicated to the analysis of rigid multibody
systems.
"""
__author__ = "Robotran team"
try:
from .MBsysPyVersion import version as __version__
except:
__version__ = "9.dev"
from ._mbsysc_loader import *
from .mbsyspy import *
from .mbs_utilities import *
\ No newline at end of file
"""Build the MBsysPy package."""
import setuptools
import os
import sys
# Retrieve version number
if os.path.isfile(os.path.join('MBsysPy', 'MBsysPyVersion.py')):
sys.path.append(os.path.join('MBsysPy', 'MBsysPyVersion.py'))
from MBsysPyVersion import version
else:
version = "9.dev"
with open("Readme_MBsysPy.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="MBsysPy",
version="0.1.7",
version=version,
author="Robotran team",
author_email="info@robotran.be",
description="An interface of MBsysC which is a scientific tool dedicated to the analysis of rigid multibody systems.",
......@@ -13,15 +23,16 @@ setuptools.setup(
long_description_content_type="text/markdown",
url="https://git.immc.ucl.ac.be/robotran/mbsysc",
packages=setuptools.find_packages(include=["MBsysPy", "MBsysPy.*"]),
package_data={'MBsysPy': ['libs64/linux/*.so',
package_data={'MBsysPy': ['libs64/linux/*.so',
'libs64/windows/*.dll',
'libs64/darwin/*.dylib',
'templates/symbolic/*.py',
'templates/user/*.py']
},
'libs64/darwin/*.dylib',
'templates/symbolic/*.py',
'templates/user/*.py'
]
},
classifiers=[
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
],
python_requires='>=2.7',
python_requires='>=3',
)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment