forked from jaredworthington/teamRocket
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
33 lines (28 loc) · 945 Bytes
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Copyright 2015 The MathWorks, Inc.
from distutils.core import setup
from distutils.command.clean import clean
from distutils.command.install import install
class InstallRuntime(install):
# Calls the default run command, then deletes the build area
# (equivalent to "setup clean --all").
def run(self):
install.run(self)
c = clean(self.distribution)
c.all = True
c.finalize_options()
c.run()
if __name__ == '__main__':
setup(
name="matlabruntimeforpython",
version="R2016b",
description='A module to call MATLAB from Python',
author='MathWorks',
url='http://www.mathworks.com/',
platforms=['Linux', 'Windows', 'MacOS'],
packages=[
'MoLS'
],
package_data={'MoLS': ['*.ctf']},
# Executes the custom code above in order to delete the build area.
cmdclass={'install': InstallRuntime}
)