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

cython.py references the old sage notebook code #9552

Closed
williamstein opened this issue Jul 19, 2010 · 12 comments
Closed

cython.py references the old sage notebook code #9552

williamstein opened this issue Jul 19, 2010 · 12 comments
Assignees
Milestone

Comments

@williamstein
Copy link
Contributor

I noticed to my surprise that misc/cython.py has these lines in it (which should be fixed, of course):

 import sage.server.support
    d = {}
    sage.server.support.cython_import_all(tmpfile, d,
                                         verbose=verbose, compile_message=compile_message,
                                         use_cache=use_cache,
                                         create_local_c_file=False)

CC: @kiwifb

Component: misc

Author: Jeroen Demeyer

Branch/Commit: 1fc034e

Reviewer: François Bissey

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

@williamstein williamstein added this to the sage-5.11 milestone Jul 19, 2010
@jdemeyer jdemeyer modified the milestones: sage-5.11, sage-5.12 Aug 13, 2013
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.1, sage-6.2 Jan 30, 2014
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.2, sage-6.3 May 6, 2014
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.3, sage-6.4 Aug 10, 2014
@kcrisman

This comment has been minimized.

@kcrisman
Copy link
Member

comment:5

Yeah, I think a lot of that stuff could go elsewhere, it's just support...

In this case the "right" fix is to move the whole Cython stuff somewhere else, probably just to cython.py (which is not a pyx file, at least not any more).

@kcrisman kcrisman changed the title cython.pyx references the old sage notebook code cython.py references the old sage notebook code Aug 15, 2014
@kcrisman
Copy link
Member

comment:6

Indeed, this wouldn't be hard to do. Worst-case we could move them but leave a deprecation that points to the new location (cython.py seems best).

sage: search_src('cython_import')
misc/cython.py:657:    sage.server.support.cython_import_all(tmpfile, d,
misc/cython.py:756:    from sage.server.support import cython_import
misc/cython.py:757:    return cython_import(file, create_local_c_file=False)
misc/cython_c.pyx:61:    sage.server.support.cython_import_all(tmpfile, globals(),
server/support.py:425:def cython_import(filename, verbose=False, compile_message=False,
server/support.py:452:def cython_import_all(filename, globals, verbose=False, compile_message=False,
server/support.py:468:    m = cython_import(filename, verbose=verbose, compile_message=compile_message,

The notebook already has its own versions of these two functions so that is not a problem, as far as I can tell (though it wouldn't hurt testing it can still Cythonize after doing this).

@jdemeyer
Copy link

Branch: u/jdemeyer/ticket/9552

@jdemeyer
Copy link

Commit: 325ca9c

@jdemeyer
Copy link

New commits:

325ca9cMove Cython functions from server/support.py to misc/cython.py

@jdemeyer
Copy link

Author: Jeroen Demeyer

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented May 5, 2015

Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:

1fc034eMove Cython functions from server/support.py to misc/cython.py

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented May 5, 2015

Changed commit from 325ca9c to 1fc034e

@jdemeyer jdemeyer modified the milestones: sage-6.6, sage-6.8 May 30, 2015
@kiwifb
Copy link
Member

kiwifb commented May 30, 2015

comment:11

Looks good to me.

@kiwifb
Copy link
Member

kiwifb commented May 30, 2015

Reviewer: François Bissey

@vbraun
Copy link
Member

vbraun commented May 30, 2015

Changed branch from u/jdemeyer/ticket/9552 to 1fc034e

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

6 participants