This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author kayhayen
Recipients dstufft, eric.araujo, kayhayen
Date 2018-07-27.19:52:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1532721155.89.0.56676864532.issue34251@psf.upfronthosting.co.za>
In-reply-to
Content
Hello there,

building an MSI for my project fails. I am calling it like this:

    assert subprocess.call(
        (
            sys.executable,
            "setup.py",
            "bdist_msi",
            "--target-version=" + sys.version[:3]
        )
    ) == 0

Giving the target version is probably non-sense and from a time, where one script was building multiple MSIs, I no longer do that.

and it gives:

 File "C:\Python37_64\lib\site-packages\setuptools\__init__.py", line 129, in setup
    return distutils.core.setup(**attrs)
  File "C:\Python37_64\lib\distutils\core.py", line 148, in setup
    dist.run_commands()
  File "C:\Python37_64\lib\distutils\dist.py", line 966, in run_commands
    self.run_command(cmd)
  File "C:\Python37_64\lib\distutils\dist.py", line 985, in run_command
    cmd_obj.run()
  File "C:\Python37_64\lib\distutils\command\bdist_msi.py", line 256, in run
    self.add_find_python()
  File "C:\Python37_64\lib\distutils\command\bdist_msi.py", line 346, in add_find_python
    if msilib.Win64:
AttributeError: module 'msilib' has no attribute 'Win64'


This happens for 32 and 64 bit CPython 3.7.0 installations. The same code works for all of 2.7, 3.3 through to 3.6, so this is a regression.
 
Any idea?

Thanks,
Kay
History
Date User Action Args
2018-07-27 19:52:35kayhayensetrecipients: + kayhayen, eric.araujo, dstufft
2018-07-27 19:52:35kayhayensetmessageid: <1532721155.89.0.56676864532.issue34251@psf.upfronthosting.co.za>
2018-07-27 19:52:35kayhayenlinkissue34251 messages
2018-07-27 19:52:35kayhayencreate