Skip to content
This repository was archived by the owner on Jun 28, 2023. It is now read-only.

Commit f91a7d7

Browse files
committed
Add bdist_wininst support
1 parent 176f2a0 commit f91a7d7

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

ci/before_deploy.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
python setup.py sdist
22
python setup.py bdist_wheel
3+
python setup.py bdist_wininst

setup.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,25 @@
11
from setuptools import find_packages, setup
22

33

4+
def mbcs_work_around():
5+
'''
6+
work around for mbcs codec to make "bdist_wininst" work
7+
https://mail.python.org/pipermail/python-list/2012-February/620326.html
8+
'''
9+
import codecs
10+
try:
11+
codecs.lookup('mbcs')
12+
except LookupError:
13+
ascii = codecs.lookup('ascii')
14+
codecs.register(lambda name: {True: ascii}.get(name == 'mbcs'))
15+
16+
417
version = __import__('everywhere').VERSION
518
exclude_from_packages = []
619
requires = []
720

21+
mbcs_work_around()
22+
823

924
setup(
1025
name='python-everywhere',

0 commit comments

Comments
 (0)