Re: Patches - Mailing list pgadmin-hackers
From | Dave Page |
---|---|
Subject | Re: Patches |
Date | |
Msg-id | CA+OCxozGmRz9wRjcaZ1R6GLZ96DqHZkSvwt4COZB_xwjSYS4kg@mail.gmail.com Whole thread Raw |
In response to | Re: Patches (Sandeep Thakkar <sandeep.thakkar@enterprisedb.com>) |
Responses |
Re: Patches
|
List | pgadmin-hackers |
On Thu, Jun 16, 2016 at 11:40 AM, Sandeep Thakkar <sandeep.thakkar@enterprisedb.com> wrote: > > >> > I have attached the patch (pgadminpro.patch) to fix this. >> >> Configuration and build fails for me with this: >> > yeah, the 'contains' function is trying to match the whole string. Replacing > that line in the patch with "contains( LIBS, -lpython2.* )" should work > fine. Nope - it looks like it's messing up the detection of python-config vs. python3-config. I'm beginning to think it only worked before because of the -lpython2.7 line you (quite rightly) removed. With the attached version of the patch, I get this output: Project MESSAGE: Building for QT5+... Project MESSAGE: Configure pgAdmin4 to run in debug mode... Project MESSAGE: Building for Linux/Mac... Project MESSAGE: Using python3-config /bin/sh: python3-config: command not found /bin/sh: python3-config: command not found /bin/sh: python3-config: command not found Project MESSAGE: Python3 detected. >> This second patch breaks builds for me: >> > This is strange because I just added a new option "--always-copy" to > virtualenv. What is your path to virtualenv? Could you please try running > 'virtualenv -v --always-copy -p > /System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2 > /tmp/venv' (pgadmin4)piranha:pgAdmin4 dpage$ virtualenv -v --always-copy -p /System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2 /tmp/venv Running virtualenv with interpreter /System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2 Creating /tmp/venv/lib/python2.7 Symlinking Python bootstrap modules Copying to /tmp/venv/lib/python2.7/config Traceback (most recent call last): File "/Library/Python/2.7/site-packages/virtualenv.py", line 2311, in <module> main() File "/Library/Python/2.7/site-packages/virtualenv.py", line 703, in main symlink=options.symlink) File "/Library/Python/2.7/site-packages/virtualenv.py", line 916, in create_environment site_packages=site_packages, clear=clear, symlink=symlink)) File "/Library/Python/2.7/site-packages/virtualenv.py", line 1111, in install_python copyfile(join(stdlib_dir, fn), join(lib_dir, fn), symlink) File "/Library/Python/2.7/site-packages/virtualenv.py", line 352, in copyfile copyfileordir(src, dest, symlink) File "/Library/Python/2.7/site-packages/virtualenv.py", line 324, in copyfileordir shutil.copytree(src, dest, symlink) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 208, in copytree raise Error, errors shutil.Error: [('/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config/config.c', '/tmp/venv/lib/python2.7/config/config.c', "[Errno 1] Operation not permitted: '/tmp/venv/lib/python2.7/config/config.c'"), ('/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config/config.c.in', '/tmp/venv/lib/python2.7/config/config.c.in', "[Errno 1] Operation not permitted: '/tmp/venv/lib/python2.7/config/config.c.in'"), ('/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config/install-sh', '/tmp/venv/lib/python2.7/config/install-sh', "[Errno 1] Operation not permitted: '/tmp/venv/lib/python2.7/config/install-sh'"), ('/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config/libpython2.7.a', '/tmp/venv/lib/python2.7/config/libpython2.7.a', "[Errno 1] Operation not permitted: '/tmp/venv/lib/python2.7/config/libpython2.7.a'"), ('/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config/libpython2.7.dylib', '/tmp/venv/lib/python2.7/config/libpython2.7.dylib', "[Errno 1] Operation not permitted: '/tmp/venv/lib/python2.7/config/libpython2.7.dylib'"), ('/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config/Makefile', '/tmp/venv/lib/python2.7/config/Makefile', "[Errno 1] Operation not permitted: '/tmp/venv/lib/python2.7/config/Makefile'"), ('/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config/makesetup', '/tmp/venv/lib/python2.7/config/makesetup', "[Errno 1] Operation not permitted: '/tmp/venv/lib/python2.7/config/makesetup'"), ('/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config/python.o', '/tmp/venv/lib/python2.7/config/python.o', "[Errno 1] Operation not permitted: '/tmp/venv/lib/python2.7/config/python.o'"), ('/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config/Setup', '/tmp/venv/lib/python2.7/config/Setup', "[Errno 1] Operation not permitted: '/tmp/venv/lib/python2.7/config/Setup'"), ('/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config/Setup.config', '/tmp/venv/lib/python2.7/config/Setup.config', "[Errno 1] Operation not permitted: '/tmp/venv/lib/python2.7/config/Setup.config'"), ('/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config/Setup.local', '/tmp/venv/lib/python2.7/config/Setup.local', "[Errno 1] Operation not permitted: '/tmp/venv/lib/python2.7/config/Setup.local'"), ('/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config', '/tmp/venv/lib/python2.7/config', "[Errno 1] Operation not permitted: '/tmp/venv/lib/python2.7/config'")] -- Dave Page Blog: http://pgsnake.blogspot.com Twitter: @pgsnake EnterpriseDB UK: http://www.enterprisedb.com The Enterprise PostgreSQL Company
Attachment
pgadmin-hackers by date: