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

setup.py: if the cythonization fails then next "sage -b" starts to build extensions #4620

Closed
sagetrac-mabshoff mannequin opened this issue Nov 25, 2008 · 4 comments
Closed

Comments

@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented Nov 25, 2008

This is with 3.2.1.alpha1-current. To reproduce do a "sage -ba" and have a Cython process fail. Then the next "sage -b" will not pick up with the Cythonization again, but start building extensions.

Deleting .cython_deps does not fix the problem.

Cheers,

Michael

Component: build

Issue created by migration from https://trac.sagemath.org/ticket/4620

@sagetrac-mabshoff sagetrac-mabshoff mannequin added this to the sage-3.2.1 milestone Nov 25, 2008
@craigcitro
Copy link
Member

Attachment: trac-4620.patch.gz

@craigcitro
Copy link
Member

comment:1

The attached patch fixes the issue. The problem was that we were copying the files at one point in the code, and then running Cython later. Of course, if Cython failed, the code was still copied, which meant it would pass a timestamp comparison on later builds. The patch fixes this by only copying once the file is successfully built.

In addition, it slightly expands the capabilities of William's parallel build code: now, in addition to accepting strings, it accepts pairs of the form [f, v], and calls f(v). The previous code did this with f always being run_command.

@sagetrac-mabshoff
Copy link
Mannequin Author

sagetrac-mabshoff mannequin commented Nov 26, 2008

comment:2

Nice work. Thanks for fixing this quickly.

Cheers,

Michael

@sagetrac-mabshoff
Copy link
Mannequin Author

sagetrac-mabshoff mannequin commented Nov 26, 2008

comment:3

Merged in Sage 3.2.1.alpha1

@sagetrac-mabshoff sagetrac-mabshoff mannequin closed this as completed Nov 26, 2008
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

1 participant