mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Remove CompileGrammarCommand, it uses removed sphinx.pycode.pgen2 module
This commit is contained in:
parent
6bce06757f
commit
28ad1c5847
27
setup.py
27
setup.py
@ -2,7 +2,6 @@
|
||||
import os
|
||||
import sys
|
||||
from distutils import log
|
||||
from distutils.cmd import Command
|
||||
|
||||
from setuptools import find_packages, setup
|
||||
|
||||
@ -152,32 +151,6 @@ else:
|
||||
cmdclass['compile_catalog'] = compile_catalog_plusjs
|
||||
|
||||
|
||||
class CompileGrammarCommand(Command):
|
||||
description = 'Compile python grammar file for pycode'
|
||||
user_options = []
|
||||
|
||||
def initialize_options(self):
|
||||
pass
|
||||
|
||||
def finalize_options(self):
|
||||
pass
|
||||
|
||||
def run(self):
|
||||
from sphinx.pycode.pgen2.driver import compile_grammar
|
||||
|
||||
compile_grammar('sphinx/pycode/Grammar-py2.txt')
|
||||
print('sphinx/pycode/Grammar-py2.txt ... done')
|
||||
|
||||
compile_grammar('sphinx/pycode/Grammar-py3.txt')
|
||||
print('sphinx/pycode/Grammar-py3.txt ... done')
|
||||
|
||||
def sub_commands(self):
|
||||
pass
|
||||
|
||||
|
||||
cmdclass['compile_grammar'] = CompileGrammarCommand
|
||||
|
||||
|
||||
setup(
|
||||
name='Sphinx',
|
||||
version=sphinx.__version__,
|
||||
|
Loading…
Reference in New Issue
Block a user