python-config

possible BUG on python-config ?! it doesn't print the full path of when using --ldflags

烈酒焚心 提交于 2019-12-08 03:02:00
问题 $ python-config --ldflags -L/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config -ldl -framework CoreFoundation -lpython2.7 -u _PyMac_Error Python.framework/Versions/2.7/Python it prints Python.framework/Versions/2.7/Python and not /Library/Frameworks/Python.framework/Versions/2.7/Python when trying to use it in a Makefile it doesn't work with the python-config --ldflags but if I take the output and changes Python.framework/Versions/2.7/Python to /Library/Frameworks/Python

Create a config file to hold values like username password url in python behave

╄→гoц情女王★ 提交于 2019-12-07 14:37:21
问题 I'm trying to create a config that holds information such as username password etc. I have created an ini file holding this: [DEFAULT] username: user password: pass I then have a config map class like: import configparser class ConfigSectionMap: def __init__(self): my_config_parser = configparser.ConfigParser() my_config_parser.read('inilocation') print(my_config_parser.default_section) def config_map(self, section): dict1 = {} options = self.my_config_parser.options(section) for option in

possible BUG on python-config ?! it doesn't print the full path of when using --ldflags

你。 提交于 2019-12-06 07:07:11
$ python-config --ldflags -L/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config -ldl -framework CoreFoundation -lpython2.7 -u _PyMac_Error Python.framework/Versions/2.7/Python it prints Python.framework/Versions/2.7/Python and not /Library/Frameworks/Python.framework/Versions/2.7/Python when trying to use it in a Makefile it doesn't work with the python-config --ldflags but if I take the output and changes Python.framework/Versions/2.7/Python to /Library/Frameworks/Python.framework/Versions/2.7/Python it works perfectly. I want to avoid a solution which parses the python

Why `pyvenv` does not install `python-config`?

ε祈祈猫儿з 提交于 2019-12-02 11:24:25
问题 I have run into this under MacOS (10.11), but have seen the same problem under various Linuxes as well. I installed the "official" Python3 package, it goes into /Library/Frameworks/Python.framework/Versions/3.4 . (Note: the examples below use Python 3.4, but the issue persists with 3.5 as well. I have no access to a machine that has Python 3.6 due to lack of admin privileges, should the issue have been solved in 3.6.) I need virtual environments and I need the python-config script to figure

Why `pyvenv` does not install `python-config`?

让人想犯罪 __ 提交于 2019-12-02 06:02:35
I have run into this under MacOS (10.11), but have seen the same problem under various Linuxes as well. I installed the "official" Python3 package, it goes into /Library/Frameworks/Python.framework/Versions/3.4 . (Note: the examples below use Python 3.4, but the issue persists with 3.5 as well. I have no access to a machine that has Python 3.6 due to lack of admin privileges, should the issue have been solved in 3.6.) I need virtual environments and I need the python-config script to figure out which libraries Python3 uses because my project combines Python and C++ code. If I set up the