IronLanguages / IronLanguages/ironpython3

Install setup.py

Open
#1,794 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
2.8k
Forks
316
Avg merge
1d 9h
Merged PRs (30d)
1

Description

  • 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?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce ipy setup.py install on Windows 10 and inspect site.py, especially addpackage where opening the package file raises the cp949 encoding error. The work is done when installation succeeds without modifying the library and the locale or encoding handling is addressed.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.