@classmethod
def _make_parser(cls):
- from ..extern.ply import lex, yacc
+ from ply import lex, yacc
# List of token names.
tokens = (
Also, this should actually never actually show up as a docstring, because
it should get overwritten by the appropriate configobj docstring.
"""
+from __future__ import absolute_import
+import validate
+import configobj
+
-from .configobj import configobj, validate, __doc__
# Update this to prevent Astropy from using its bundled copy of six
# (but only if some other version of at least _SIX_MIN_VERSION can
# be provided)
-_SIX_SEARCH_PATH = ['astropy.extern.bundled.six', 'six']
+_SIX_SEARCH_PATH = ['six']
def _find_module(name, path=None):
conf = Conf()
-EXTERN_JS_DIR = abspath(join(dirname(extern.__file__), 'js'))
-EXTERN_CSS_DIR = abspath(join(dirname(extern.__file__), 'css'))
+EXTERN_JS_DIR = '/usr/share/javascript'
+EXTERN_CSS_DIR = EXTERN_JS_DIR
IPYNB_JS_SCRIPT = """
<script>
@property
def jquery_urls(self):
if self._use_local_files:
- return ['file://' + join(EXTERN_JS_DIR, 'jquery-3.1.1.min.js'),
- 'file://' + join(EXTERN_JS_DIR, 'jquery.dataTables.min.js')]
+ return ['file://' + join(EXTERN_JS_DIR, 'jquery', 'jquery.min.js'),
+ 'file://' + join(EXTERN_JS_DIR, 'jquery-datatables',
+ 'jquery.dataTables.min.js')]
else:
return [conf.jquery_url, conf.datatables_url]
@property
def css_urls(self):
if self._use_local_files:
- return ['file://' + join(EXTERN_CSS_DIR,
+ return ['file://' + join(EXTERN_CSS_DIR, 'jquery-datatables', 'css',
'jquery.dataTables.css')]
else:
return conf.css_urls
def _jstable_file(self):
if self._use_local_files:
- return 'file://' + join(EXTERN_JS_DIR, 'jquery.dataTables.min')
+ return 'file://' + join(EXTERN_JS_DIR, 'jquery-datatables',
+ 'jquery.dataTables.min')
else:
return conf.datatables_url[:-3]
table_id='test',
length='50',
display_length='10, 25, 50, 100, 500, 1000',
- datatables_css_url='file://' + join(EXTERN_DIR, 'css', 'jquery.dataTables.css'),
- datatables_js_url='file://' + join(EXTERN_DIR, 'js', 'jquery.dataTables.min.js'),
- jquery_url='file://' + join(EXTERN_DIR, 'js', 'jquery-3.1.1.min.js')
+ datatables_css_url='file:///usr/share/javascript/jquery-datatables/css/jquery.dataTables.css',
+ datatables_js_url='file:///usr/share/javascript/jquery-datatables/jquery.dataTables.min.js',
+ jquery_url='file:///usr/share/javascript/jquery/jquery.min.js'
)
with open(tmpfile) as f:
assert f.read().strip() == ref.strip()
'pickle_protocol', 'generic_recursive_equality_test']
-if os.environ.get('ASTROPY_USE_SYSTEM_PYTEST') or '_pytest' in sys.modules:
+if True:
import pytest
else:
@classmethod
def _make_lexer(cls):
- from ...extern.ply import lex
+ from ply import lex
tokens = cls._tokens
<https://bitbucket.org/nxg/unity/>`_.
"""
- from ...extern.ply import yacc
+ from ply import yacc
tokens = cls._tokens
@classmethod
def _make_lexer(cls):
- from ...extern.ply import lex
+ from ply import lex
tokens = cls._tokens
formats, the only difference being the set of available unit
strings.
"""
- from ...extern.ply import yacc
+ from ply import yacc
tokens = cls._tokens
@classmethod
def _make_lexer(cls):
- from ...extern.ply import lex
+ from ply import lex
tokens = cls._tokens
<https://bitbucket.org/nxg/unity/>`_.
"""
- from ...extern.ply import yacc
+ from ply import yacc
tokens = cls._tokens