-
大小: 36.04MB文件類型: .gz金幣: 1下載: 0 次發(fā)布日期: 2023-07-11
- 語言: Python
- 標(biāo)簽:
資源簡介
python matplotlib-3.1.1.tar.gz 模塊下載。可用于可視化操作
代碼片段和文件信息
“““
The?matplotlib?build?options?can?be?modified?with?a?setup.cfg?file.?See
setup.cfg.template?for?more?information.
“““
#?NOTE:?This?file?must?remain?Python?2?compatible?for?the?foreseeable?future
#?to?ensure?that?we?error?out?properly?for?people?with?outdated?setuptools
#?and/or?pip.
import?sys
if?sys.version_info?(3?6):
????error?=?“““
Beginning?with?Matplotlib?3.1?Python?3.6?or?above?is?required.
This?may?be?due?to?an?out?of?date?pip.
Make?sure?you?have?pip?>=?9.0.1.
“““
????sys.exit(error)
from?io?import?BytesIO
import?os
from?string?import?Template
import?urllib.request
from?zipfile?import?ZipFile
from?setuptools?import?setup?Extension
from?setuptools.command.build_ext?import?build_ext?as?BuildExtCommand
from?setuptools.command.develop?import?develop?as?DevelopCommand
from?setuptools.command.install_lib?import?install_lib?as?InstallLibCommand
from?setuptools.command.test?import?test?as?TestCommand
#?The?setuptools?version?of?sdist?adds?a?setup.cfg?file?to?the?tree.
#?We?don‘t?want?that?so?we?simply?remove?it?and?it?will?fall?back?to
#?vanilla?distutils.
try:
????from?setuptools.command?import?sdist
except?ImportError:
????pass
else:
????del?sdist.sdist.make_release_tree
from?distutils.dist?import?Distribution
import?setupext
from?setupext?import?(print_line?print_raw?print_message?print_status
??????????????????????download_or_cache)
#?Get?the?version?from?versioneer
import?versioneer
__version__?=?versioneer.get_version()
#?These?are?the?packages?in?the?order?we?want?to?display?them.??This
#?list?may?contain?strings?to?create?section?headers?for?the?display.
mpl_packages?=?[
????‘Building?Matplotlib‘
????setupext.Matplotlib()
????setupext.Python()
????setupext.Platform()
????setupext.Numpy()
????setupext.LibAgg()
????setupext.FreeType()
????setupext.FT2Font()
????setupext.Png()
????setupext.Qhull()
????setupext.Image()
????setupext.TTConv()
????setupext.Path()
????setupext.Contour()
????setupext.QhullWrap()
????setupext.Tri()
????‘Optional?subpackages‘
????setupext.SampleData()
????setupext.Tests()
????‘Optional?backend?extensions‘
????setupext.BackendAgg()
????setupext.BackendTkAgg()
????setupext.BackendMacOSX()
????‘Optional?package?data‘
????setupext.Dlls()
????]
classifiers?=?[
????‘Development?Status?::?5?-?Production/Stable‘
????‘Intended?Audience?::?Science/Research‘
????‘License?::?OSI?Approved?::?Python?Software?Foundation?License‘
????‘Programming?Language?::?Python‘
????‘Programming?Language?::?Python?::?3‘
????‘Programming?Language?::?Python?::?3.6‘
????‘Programming?Language?::?Python?::?3.7‘
????‘Topic?::?Scientific/Engineering?::?Visualization‘
????]
class?NoopTestCommand(TestCommand):
????def?__init__(self?dist):
????????print(“Matplotlib?does?not?support?running?tests?with?“
??????????????“‘python?setup.py?test‘.?Please?run?‘pytest‘.“)
class?BuildExtraLibraries(BuildExtCommand):
????def?finalize_options(self):
????????self.distribution.ext_modules[:]?=?filter(
評論
共有 條評論