Skip to content

Commit

Permalink
Merge pull request #44 from kmorey/master
Browse files Browse the repository at this point in the history
Modify setup.py to allow cx_freeze from virtualenv
  • Loading branch information
betterengineering authored Sep 2, 2016
2 parents dad4b3e + 8cd7551 commit 1b7527e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
import matplotlib
from setuptools import find_packages
from cx_Freeze import setup, Executable
import distutils
import opcode


# Read in long description and requirements.
Expand All @@ -23,6 +25,7 @@

# Detetermine platform and define setup.
if sys.platform == 'win32':
distutils_path = os.path.join(os.path.dirname(opcode.__file__), 'distutils')
setup(
name=name,
version=version,
Expand All @@ -39,14 +42,15 @@
'includes': [
'matplotlib',
'serial',
'distutils',
'matplotlib.backends.backend_qt5agg'],
'include_files': [
'static',
'openroast/views',
'openroast/controllers',
'LICENSE',
(matplotlib.get_data_path(), 'mpl-data')],
(matplotlib.get_data_path(), 'mpl-data'),
(distutils_path, 'distutils')],
'excludes': ['distutils'],
'icon': 'static/icons/openroast-windows.ico',
'include_msvcr': True
},
Expand Down

0 comments on commit 1b7527e

Please sign in to comment.