INNER CODE UNIT · Python
flags
PyAbel/PyAbel · setup.py:18
flags=re.MULTILINE, count=4) # limit to top 2 pairs of image + target
# and change all GH and RTD links to this specific PyAbel version
long_description = long_description.\
replace('https://github.com/PyAbel/PyAbel/tree/master/',
f'https://github.com/PyAbel/PyAbel/tree/v{__version__}/').\
replace('https://pyabel.readthedocs.io/en/latest/',
f'https://pyabel.readthedocs.io/en/v{__version__}/')
# Try to build Cython extensions
try:
import numpy
from Cython.Compiler import Options
Options.annotate = False # don't create HTML
libraries = []
extra_link_args = []
if sys.platform == 'win32': # for MSVC