Skip to content

Commit

Permalink
Further update setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
pavel-kirienko committed Jan 12, 2021
1 parent 69f1f84 commit 717ddf7
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@
'pyyaml~=3.10',
'easywebdav~=1.2',
'numpy',
# These dependencies are not directly used by the application, but they are sometimes not pulled in
# automatically by PIP, so we need to list them here. This should be investigated further.
'pyqt5',
'traitlets',
'jupyter-client',
'ipykernel',
Expand Down Expand Up @@ -130,7 +129,7 @@
# Windows-specific options and hacks
#
if os.name == 'nt':
args.setdefault('setup_requires', []).append('cx_Freeze ~= 6.1')
args.setdefault('install_requires', []).append('cx_Freeze ~= 6.1')

if ('bdist_msi' in sys.argv) or ('build_exe' in sys.argv):
import cx_Freeze
Expand Down Expand Up @@ -178,13 +177,6 @@
],
'include_msvcr': True,
'include_files': [
# cx_Freeze doesn't respect the DSDL definition files that are embedded into the package,
# so we need to include the Pyuavcan package as data in order to work-around this problem.
# Despite the fact that Pyuavcan is included as data, we still need cx_Freeze to analyze its
# dependencies, so we don't exclude it explicitly.
os.path.join(unpacked_eggs_dir, 'uavcan'),
# Same thing goes with the main package - we want its directory structure untouched, so we include
# it as data, too.
PACKAGE_NAME,
# These packages don't work properly when packed in .zip, so here we have another bunch of ugly hacks
os.path.join(unpacked_eggs_dir, os.path.dirname(PyQt5.__file__)),
Expand Down Expand Up @@ -212,7 +204,6 @@
]
# Dispatching to cx_Freeze only if MSI build was requested explicitly. Otherwise continue with regular setup.
# This is done in order to be able to install dependencies with regular setuptools.
# TODO: This is probably not right.
def setup(*args, **kwargs):
cx_Freeze.setup(*args, **kwargs)

Expand Down

0 comments on commit 717ddf7

Please sign in to comment.