Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python 3.0: setup.py install (tip: 2013-06-08) #16

Closed
ghost opened this issue Jun 8, 2013 · 4 comments
Closed

Python 3.0: setup.py install (tip: 2013-06-08) #16

ghost opened this issue Jun 8, 2013 · 4 comments

Comments

@ghost
Copy link

ghost commented Jun 8, 2013

Originally reported by: philip_thiem (Bitbucket: philip_thiem, GitHub: Unknown)


On win32 x Python 3.0, "setup.py install" fails with;

#!python
Skipping implicit fixer: buffer
Skipping implicit fixer: idioms
Skipping implicit fixer: set_literal
Skipping implicit fixer: ws_comma
Traceback (most recent call last):
  File "setup.py", line 220, in <module>
    scripts = [],
  File "c:\python30\lib\distutils\core.py", line 135, in setup
    ok = dist.parse_command_line()
  File "C:\development\setuptools\build\src\setuptools\dist.py", line 273, in pa
rse_command_line
    result = _Distribution.parse_command_line(self)
  File "c:\python30\lib\distutils\dist.py", line 441, in parse_command_line
    if self.handle_display_options(option_order):
  File "C:\development\setuptools\build\src\setuptools\dist.py", line 713, in ha
ndle_display_options
    sys.stdout.detach(), 'utf-8', errors, newline, line_buffering)
AttributeError: 'TextIOWrapper' object has no attribute 'detach'


@ghost
Copy link
Author

ghost commented Jun 9, 2013

Original comment by jaraco (Bitbucket: jaraco, GitHub: jaraco):


Does this issue only exist with Python 3.0 (but not 3.1+)? If so, I'd say the value in fixing is vanishingly small, as Python 3.0 was quickly replaced by 3.1 and saw minimal adoption.

@ghost
Copy link
Author

ghost commented Jun 9, 2013

Original comment by philip_thiem (Bitbucket: philip_thiem, GitHub: Unknown):


Correct. I was installing (setup.pt install) tip on several versions in
prep for running some tests on a pip patch. Only saw this issue on 3.0.

@ghost
Copy link
Author

ghost commented Jun 9, 2013

Original comment by philip_thiem (Bitbucket: philip_thiem, GitHub: Unknown):


I would not had bothered either, I seconded guessed myself when I noticed "Programming Language :: Python :: 3" and not "Programming Language :: Python :: 2" was in the setup.py

@ghost
Copy link
Author

ghost commented Jun 18, 2013

Original comment by jaraco (Bitbucket: jaraco, GitHub: jaraco):


Thanks for the report. At the very least, it's good to have a record of the issue. Until we have users on Python 3.0 who need setuptools support, I'm marking this as won't fix.

@ghost ghost added major bug labels Mar 29, 2016
@ghost ghost closed this as completed Mar 29, 2016
jaraco added a commit that referenced this issue Nov 18, 2021
jaraco pushed a commit that referenced this issue Dec 29, 2021
Instead of guessing the filename just refer to the stdlib.

This also removes the "_makefile_tmpl" hook added in #16, but

1) It was never implemented by the distro requesting it from what I can see:
   https://github.com/NetBSD/pkgsrc/blob/586097714897b1b4d4a9/devel/py-setuptools/Makefile#L28
2) The stdlib version should return a proper result as it is patched by the distro requesting the change:
   https://github.com/NetBSD/pkgsrc/blob/6efa5763ec447864a7d4/lang/python38/patches/patch-Lib_sysconfig.py

Also adds a small test checking that the file exists on Unix platforms
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

0 participants