[issue32223] distutils doesn't correctly read UTF-8 content from config files

2019-04-30 Thread Eduardo Suarez-Santana


Eduardo Suarez-Santana  added the comment:

In my opinion, 'setup.cfg' is setuptools stuff and not part of python project. 
Anyway I think it is a good idea to read it as UTF-8.

Setuptools seems to be defaulting to UTF-8: 
https://github.com/pypa/setuptools/pull/1735

--
nosy: +esuarezsantana

___
Python tracker 
<https://bugs.python.org/issue32223>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32398] GDAL compilation error

2017-12-21 Thread Eduardo Suarez-Santana

New submission from Eduardo Suarez-Santana :

When compiling GDAL with python support, under certain build chain environment 
variables, next error may appear when building and linking python extensions 
(https://www.mail-archive.com/freebsd-ports@freebsd.org/msg41030.html):

/bin/sh: -d: invalid option

See the Github PR for proposed solution.

--
components: Distutils
messages: 308887
nosy: dstufft, eric.araujo, esuarezsantana
priority: normal
pull_requests: 4857
severity: normal
status: open
title: GDAL compilation error
type: behavior
versions: Python 3.6

___
Python tracker 
<https://bugs.python.org/issue32398>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32398] OSX C++ linking workaround in distutils breaks other packages

2017-12-21 Thread Eduardo Suarez-Santana

Change by Eduardo Suarez-Santana :


--
title: GDAL compilation error -> OSX C++ linking workaround in distutils breaks 
other packages

___
Python tracker 
<https://bugs.python.org/issue32398>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32398] OSX C++ linking workaround in distutils breaks other packages

2017-12-21 Thread Eduardo Suarez-Santana

Eduardo Suarez-Santana  added the comment:

When compiling GDAL with python support, before 
Lib/distutils/unixccompiler.py:180,

self.compiler_cxx = ['/bin/sh', '/usr/x86_64-pc-linux-gnu/bin/libtool', 
'--mode=compile', '--tag=CXX', 'x86_64-pc-linux-gnu-c++']
linker = ['x86_64-pc-linux-gnu-cc', '-pthread', '-shared', '-march=native', 
'-pipe', '-O2', '-Wall', '-Wdeclaration-after-statement', '-Wextra', 
'-Winit-self', '-Wunused-parameter', '-Wmissing-prototypes', 
'-Wmissing-declarations', '-Wformat', '-Werror=format-security', 
'-Wno-format-nonliteral', '-Wlogical-op', '-Wshadow', '-Werror=vla', 
'-Wdeclaration-after-statement', '-Wnull-dereference', '-Wduplicated-cond', 
'-DOGR_ENABLED', '-march=native', '-pipe', '-O2', 
'-I/var/tmp/paludis/build/sci-libs-gdal-2.1.1/work/gdal-2.1.1/port', 
'-DGDAL_COMPILATION']

and after the workaround code:

linker = ['/bin/sh', '-pthread', '-shared', '-march=native', '-pipe', '-O2', 
'-Wall', '-Wdeclaration-after-statement', '-Wextra', '-Winit-self', 
'-Wunused-parameter', '-Wmissing-prototypes', '-Wmissing-declarations', 
'-Wformat', '-Werror=format-security', '-Wno-format-nonliteral', 
'-Wlogical-op', '-Wshadow', '-Werror=vla', '-Wdeclaration-after-statement', 
'-Wnull-dereference', '-Wduplicated-cond', '-DOGR_ENABLED', '-march=native', 
'-pipe', '-O2', 
'-I/var/tmp/paludis/build/sci-libs-gdal-2.1.1/work/gdal-2.1.1/port', 
'-DGDAL_COMPILATION']

which leads to next error:

/bin/sh: -d: invalid option

Some fixes to compilation (https://www.michael-joost.de/gdal_install.html) have 
been found, but anyway the existing workaround:

1. ...is a hack about OSX but there is no platform checking,

2. ...assumes linker and compiler commands have similar structure and
environment settings (no documentation reference found about that), and

3. ...assumes `env`, if used, does not come with any modifier.

My proposal is to remove the workaround and delegate right environmental 
variables to packagers.

--

___
Python tracker 
<https://bugs.python.org/issue32398>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com