mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-07 20:00:53 +00:00
docs: Refactor extensions into packages, update the add-ons-reference docs page
Includes converting some of the remaining standalone scripts into Sphinx extensions. Make flake8 clean
This commit is contained in:

committed by
Angus Gratton

parent
cbede3a3a4
commit
a148d8e6ba
@@ -16,6 +16,7 @@
|
||||
|
||||
import argparse
|
||||
import os
|
||||
import re
|
||||
import sys
|
||||
|
||||
try:
|
||||
@@ -52,6 +53,8 @@ if __name__ == "__main__":
|
||||
# adjustments for options which we use.
|
||||
if line.startswith('file://'):
|
||||
line = os.path.basename(line)
|
||||
if line.startswith('-e') and '#egg=' in line: # version control URLs, take the egg= part at the end only
|
||||
line = re.search(r'#egg=([^\s]+)', line).group(1)
|
||||
try:
|
||||
pkg_resources.require(line)
|
||||
except Exception:
|
||||
|
Reference in New Issue
Block a user