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

--no-compile option has no effect #42368

Closed
tim-one opened this issue Sep 13, 2005 · 2 comments
Closed

--no-compile option has no effect #42368

tim-one opened this issue Sep 13, 2005 · 2 comments
Labels
stdlib Python modules in the Lib dir

Comments

@tim-one
Copy link
Member

tim-one commented Sep 13, 2005

BPO 1290382
Nosy @tim-one

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2005-09-13.19:20:11.000>
created_at = <Date 2005-09-13.19:03:49.000>
labels = ['invalid', 'library']
title = '--no-compile option has no effect'
updated_at = <Date 2005-09-13.19:20:11.000>
user = 'https://github.com/tim-one'

bugs.python.org fields:

activity = <Date 2005-09-13.19:20:11.000>
actor = 'tim.peters'
assignee = 'none'
closed = True
closed_date = None
closer = None
components = ['Distutils']
creation = <Date 2005-09-13.19:03:49.000>
creator = 'tim.peters'
dependencies = []
files = []
hgrepos = []
issue_num = 1290382
keywords = []
message_count = 2.0
messages = ['26275', '26276']
nosy_count = 1.0
nosy_names = ['tim.peters']
pr_nums = []
priority = 'normal'
resolution = 'not a bug'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue1290382'
versions = []

@tim-one
Copy link
Member Author

tim-one commented Sep 13, 2005

ZODB ships with a .py file containing a syntax error
(that's intentional, it's part of a test of the zope.testing
component). So, whenever somone does

setup.py install

they see a complaint about this file, like

byte-compiling /home/tim/glom/lib/python2.4/site-
packages/zope/testing/testrunner-
ex/sample2/sampletests_i.py to sampletests_i.pyc
File "/home/tim/glom/lib/python2.4/site-
packages/zope/testing/testrunner-
ex/sample2/sampletests_i.py", line 15
importx unittest
^
SyntaxError: invalid syntax

That's fine. The problem is that doing

setup.py install --no-compile

makes no difference -- it still tries to compile everything
to .pyc. True at least in Python 2.3.5 and 2.4.1.

@tim-one tim-one closed this as completed Sep 13, 2005
@tim-one tim-one added invalid stdlib Python modules in the Lib dir labels Sep 13, 2005
@tim-one tim-one closed this as completed Sep 13, 2005
@tim-one tim-one added invalid stdlib Python modules in the Lib dir labels Sep 13, 2005
@tim-one
Copy link
Member Author

tim-one commented Sep 13, 2005

Logged In: YES
user_id=31435

Closing this as invalid -- it appears to be unique to setup.py
thingies created by Zope's zpkgtools.

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib Python modules in the Lib dir
Projects
None yet
Development

No branches or pull requests

1 participant