`_
-* Wheels by using conda packages (see below)
-* Conda packages (see below)
-
If you are building your own Matplotlib wheels (or sdists), note that any DLLs
that you copy into the source tree will be packaged too.
-Wheel builds using conda packages
-^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-
-This is a wheel build, but we use conda packages to get all the requirements.
-FreeType is statically linked and therefore not needed during the wheel install.
-
-Set up the conda environment. Note, if you want a qt backend, add ``pyqt`` to
-the list of conda packages.
-
-::
-
- conda create -n "matplotlib_build" python=3.7 numpy python-dateutil pyparsing tornado cycler tk zlib freetype
- conda activate matplotlib_build
- # force the build against static zlib libraries
- set MPLSTATICBUILD=True
- python setup.py bdist_wheel
-
-
Conda packages
-^^^^^^^^^^^^^^
+--------------
The conda packaging scripts for Matplotlib are available at
https://github.com/conda-forge/matplotlib-feedstock.
diff --git a/ci/azure-pipelines-steps.yml b/ci/azure-pipelines-steps.yml
index 8064064b2020..3337485be857 100644
--- a/ci/azure-pipelines-steps.yml
+++ b/ci/azure-pipelines-steps.yml
@@ -16,16 +16,6 @@ steps:
prerelease: true
condition: and(succeeded(), eq(variables['python.version'], 'Pre'))
-- ${{ if eq(parameters.installer, 'nuget') }}:
- - task: NuGetToolInstaller@0
- displayName: 'Use latest available Nuget'
-
- - script: |
- nuget install zlib-msvc14-x64 -ExcludeVersion -OutputDirectory "$(build.BinariesDirectory)"
- echo ##vso[task.prependpath]$(build.BinariesDirectory)\zlib-msvc14-x64\build\native\bin_release
-
- displayName: 'Install dependencies with nuget'
-
- ${{ if eq(parameters.installer, 'brew') }}:
- script: |
brew cask install xquartz
diff --git a/doc/faq/environment_variables_faq.rst b/doc/faq/environment_variables_faq.rst
index 83896a70a5ed..04e7bccaef96 100644
--- a/doc/faq/environment_variables_faq.rst
+++ b/doc/faq/environment_variables_faq.rst
@@ -31,9 +31,14 @@ Environment Variables
defined, :file:`{HOME}/.config/matplotlib` is generally used on unix-like
systems and :file:`{HOME}/.matplotlib` is used on other platforms, if they are
writable. Otherwise, the python standard library :func:`tempfile.gettempdir`
- is used to find a base directory in which the :file:`matplotlib` subdirectory
+ is used to find a base directory in which the :file:`matplotlib` subdirectory
is created.
+.. envvar:: MPLLOCALFREETYPE
+
+ If set, this environment variable directs Matplotlib's build script to
+ download and build its own copy of the FreeType library.
+
.. envvar:: PATH
The list of directories searched to find executable programs.
diff --git a/doc/faq/installing_faq.rst b/doc/faq/installing_faq.rst
index 7a88b32bf2db..7777a98eb957 100644
--- a/doc/faq/installing_faq.rst
+++ b/doc/faq/installing_faq.rst
@@ -182,26 +182,13 @@ or::
git clone git://github.com/matplotlib/matplotlib.git
-and build and install as usual with::
+and build and install with::
cd matplotlib
+ export MPLLOCALFREETYPE=1 # on Linux and OSX.
+ set MPLLOCALFREETYPE=1 # on Windows.
python -mpip install .
-.. note::
-
- If you are on Debian/Ubuntu, you can get all the dependencies required to
- build Matplotlib with::
-
- sudo apt-get build-dep python-matplotlib
-
- If you are on Fedora/RedHat, you can get all the dependencies required to
- build Matplotlib by first installing ``yum-builddep`` and then running::
-
- su -c 'yum-builddep python-matplotlib'
-
- This does not build Matplotlib, but it does get all of the build
- dependencies, which will make building from source easier.
-
If you want to be able to follow the development branch as it changes
just replace the last step with::
@@ -211,8 +198,6 @@ This creates links and installs the command line script in the appropriate
places.
.. note::
- OSX users please see the :ref:`build_osx` guide.
-
Windows users please see the :ref:`build_windows` guide.
Then, if you want to update your Matplotlib at any time, just do::
diff --git a/setupext.py b/setupext.py
index 10ae966364de..e3680e929d5a 100644
--- a/setupext.py
+++ b/setupext.py
@@ -151,32 +151,23 @@ def write_cache(local_fn, data):
# matplotlib build options, which can be altered using setup.cfg
options = {
'backend': None,
- 'staticbuild': False,
- }
+}
setup_cfg = os.environ.get('MPLSETUPCFG', 'setup.cfg')
if os.path.exists(setup_cfg):
config = configparser.ConfigParser()
config.read(setup_cfg)
-
if config.has_option('rc_options', 'backend'):
options['backend'] = config.get("rc_options", "backend")
-
if config.has_option('test', 'local_freetype'):
options['local_freetype'] = config.getboolean("test", "local_freetype")
-
- if config.has_option('build', 'staticbuild'):
- options['staticbuild'] = config.getboolean("build", "staticbuild")
else:
config = None
lft = bool(os.environ.get('MPLLOCALFREETYPE', False))
options['local_freetype'] = lft or options.get('local_freetype', False)
-staticbuild = bool(os.environ.get('MPLSTATICBUILD', os.name == 'nt'))
-options['staticbuild'] = staticbuild or options.get('staticbuild', False)
-
if '-q' in sys.argv or '--quiet' in sys.argv:
def print_raw(*args, **kwargs): pass # Suppress our own output.
@@ -202,21 +193,6 @@ def get_buffer_hash(fd):
return hasher.hexdigest()
-def deplib(libname):
- if sys.platform != 'win32':
- return libname
-
- known_libs = {
- 'z': ('zlib', 'static'),
- }
-
- libname, static_postfix = known_libs[libname]
- if options['staticbuild']:
- libname += static_postfix
-
- return libname
-
-
@functools.lru_cache(1) # We only need to compute this once.
def get_pkg_config():
"""
@@ -521,7 +497,7 @@ def add_flags(self, ext):
ext, 'freetype2',
atleast_version='9.11.3',
alt_exec=['freetype-config'],
- default_libraries=['freetype', deplib('z')])
+ default_libraries=['freetype'])
ext.define_macros.append(('FREETYPE_BUILD_TYPE', 'system'))
def do_custom_build(self):
pFad - Phonifier reborn
Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy