fmt/doc-build-do-not-create-virtual-environment.patch
Jan Staněk 878c1ee7f9
Update to 5.3.0
Recreate documentation build patches
Package new pkg-config files
2019-06-10 14:52:17 +02:00

27 lines
1.1 KiB
Diff

diff -up fmt-5.3.0/doc/build.py.orig fmt-5.3.0/doc/build.py
--- fmt-5.3.0/doc/build.py.orig 2019-06-10 14:38:07.646072524 +0200
+++ fmt-5.3.0/doc/build.py 2019-06-10 14:38:23.793201765 +0200
@@ -7,16 +7,6 @@ from subprocess import check_call, check
versions = ['1.0.0', '1.1.0', '2.0.0', '3.0.2', '4.0.0', '4.1.0', '5.0.0', '5.1.0', '5.2.0', '5.2.1', '5.3.0']
-def create_build_env(dirname='virtualenv'):
- # Create virtualenv.
- if not os.path.exists(dirname):
- check_call(['virtualenv', dirname])
- import sysconfig
- scripts_dir = os.path.basename(sysconfig.get_path('scripts'))
- activate_this_file = os.path.join(dirname, scripts_dir, 'activate_this.py')
- with open(activate_this_file) as f:
- exec(f.read(), dict(__file__=activate_this_file))
-
def build_docs(version='dev', **kwargs):
doc_dir = kwargs.get('doc_dir', os.path.dirname(os.path.realpath(__file__)))
work_dir = kwargs.get('work_dir', '.')
@@ -79,5 +69,4 @@ def build_docs(version='dev', **kwargs):
return html_dir
if __name__ == '__main__':
- create_build_env()
build_docs(sys.argv[1])