Skip to content

Install setup.py #1794

@nalsandori

Description

@nalsandori
  • setup.py
from setuptools import setup
  • windows 10> cmd
d:\> ipy setup.py install
  • Result
...
c:\program files\Ironpython 3.4\lib\site.py, line 162, in addpackage
...
c:\program fIles\IronPython 3.4\lib\site.py, line 564, in <module>
Lookuperror: unknown encoding: cp949
  • So, I modified code in site.py
def addpackage(sitedir, name, known_paths):
    ...
    fullname = os.path.join(sitedir, name)
    try:
        f = open(fullname, "r")  #occured error
        #f = open(fullname, "r", encoding='utf8')
  • It was good working when I added encoding='utf8'
  • It is possible to set setlocale to utf8 without modifying the library?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions