Re: how to move "Python Launcher" away from /Application folder?

2022-11-09 Thread Langer, Stephen A. (Fed) via macports-users
Build MacPorts from source and use the --with-applications-dir option when configuring it. -- Steve -Original Message- From: macports-users on behalf of supervisitor via macports-users Reply-To: supervisitor Date: Wednesday, November 9, 2022 at 10:38 AM To: "macports-users@lists.ma

Re: python3, tabs, and Terminal

2022-10-12 Thread Langer, Stephen A. (Fed) via macports-users
On 2022-10-13 08:05 , Joshua Root wrote: > Langer, Stephen A. (Fed) wrote: > >> I don’t know if I have something wrong in my settings or expectations, >> or if this is a bug. Typing a tab in an Apple Terminal window while >> using any version of Py

python3, tabs, and Terminal

2022-10-12 Thread Langer, Stephen A. (Fed) via macports-users
Hi -- I don’t know if I have something wrong in my settings or expectations, or if this is a bug. Typing a tab in an Apple Terminal window while using any version of Python3 from MacPorts makes the terminal enter some kind of editing mode, instead of just indenting the line. Python2 from MacP

Segregated subports (was Re: Should I expect a +quartz variant to propagate to dependencies, and overrule existing variants?)

2022-06-02 Thread Langer, Stephen A. (Fed) via macports-users
On 6/2/22, 12:11 PM, "macports-users on behalf of Eric Gallager via macports-users" wrote: > Ultimately this nonsense will all be eliminated, by migrating from variants to segregated subports. That’s a big effort, given the number of ports involved. But it’s something I’m finally starti

cmake question

2022-03-30 Thread Langer, Stephen A. (Fed) via macports-users
Hi -- When using cmake from MacPorts, how can I get it to use python from MacPorts? These lines in CMakeLists.txt  find_package(Python COMPONENTS Interpreter Development) message("Python is ${Python_EXECUTABLE}") print Python is /Applications/Xcode.app/Contents/Developer/Library/Framewor

Re: gtk3 problem

2021-12-14 Thread Langer, Stephen A. (Fed) via macports-users
On 12/13/21, 1:08 PM, "Ryan Schmidt" wrote: On Dec 11, 2021, at 15:15, Langer, Stephen A. (Fed) wrote: > > On 12/11/21, 9:00 AM, Ryan Schmidt wrote: > >> On Dec 10, 2021, at 13:51, Langer, Stephen A. (Fed) wrote: >> >>>

Re: gtk3 problem

2021-12-11 Thread Langer, Stephen A. (Fed) via macports-users
On 12/11/21, 9:00 AM, "Ryan Schmidt" wrote: On Dec 10, 2021, at 13:51, Langer, Stephen A. (Fed) wrote: > Is anyone running gtk3 programs on an M1 or on Monterey? The following simple script crashes on an M1 Mini with Monterey, when run with python 2.7: >

gtk3 problem

2021-12-10 Thread Langer, Stephen A. (Fed) via macports-users
Hi -- Is anyone running gtk3 programs on an M1 or on Monterey? The following simple script crashes on an M1 Mini with Monterey, when run with python 2.7: import gi gi.require_version("Gtk", "3.0") from gi.repository import Gtk window = Gtk.Window(Gtk.WindowType.TOPLEVEL, title="test") The err

Re: mango linking question

2021-09-30 Thread Langer, Stephen A. (Fed) via macports-users
The subject line should read "pango", not "mango". Not that I have anything against mangoes. -- Steve On 9/30/21, 2:27 PM, "macports-users on behalf of Langer, Stephen A. (Fed) via macports-users" wrote: Hi -- What do these messages mean, and do I n

mango linking question

2021-09-30 Thread Langer, Stephen A. (Fed) via macports-users
Hi -- What do these messages mean, and do I need to worry about them? They occur when linking a program with clang++. % /usr/bin/clang++ -L/opt/local/lib ... something.o ... -lpangocairo-1.0 -lpango-1.0 ... -o something.so ld: warning: dylib (/opt/local/lib/libpangocairo-1.0.dylib) was built

Re: python and gtk3 and gdk-pixbuf and maybe big sur

2021-07-13 Thread Langer, Stephen A. (Fed) via macports-users
On 7/12/21, 9:52 PM, "macports-users on behalf of Langer, Stephen A. (Fed) via macports-users" mailto:macports-users-boun...@lists.macports.org> on behalf of macports-users@lists.macports.org<mailto:macports-users@lists.macports.org>> wrote: On 7/12/21, 8:34 PM,

Re: python and gtk3 and gdk-pixbuf and maybe big sur

2021-07-12 Thread Langer, Stephen A. (Fed) via macports-users
On 7/12/21, 8:34 PM, "Ryan Schmidt" wrote: On Jul 12, 2021, at 10:40, Langer, Stephen A. (Fed) wrote: > > Hi -- > > Since upgrading to Big Sur and reinstalling all ports, I can't run gtk3 with either python37 or python38. Running t

python and gtk3 and gdk-pixbuf and maybe big sur

2021-07-12 Thread Langer, Stephen A. (Fed) via macports-users
Hi -- Since upgrading to Big Sur and reinstalling all ports, I can't run gtk3 with either python37 or python38. Running this: % python >>> import gi >>> gi.require_version("Gtk", "3.0") >>> from gi.repository import Gtk Leads to this: ** (process:3291): WARNING **: 11:18:57.866: Failed to loa

p5.28-encode ?

2020-09-18 Thread Langer, Stephen A. (Fed) via macports-users
Hi -- I'm getting a checksum error when running "port upgrade outdated": % sudo port upgrade outdated ---> Computing dependencies for p5.28-encode ---> Fetching distfiles for p5.28-encode ---> Attempting to fetch Encode-3.07.tar.gz from http://cpan.perl-hackers.net/modules/by-module/../../aut

OpenGL versions supported?

2018-08-30 Thread Langer, Stephen A. (Fed)
Hi -- Earlier I had asked what version of OpenGL is supported by MacPorts' version of mesa, and then was distracted by other issues and never got to the next part of the question... Mesa 17.1.6 nominally supports OpenGL 4.5, but glxinfo says it's only 2.1: >> port installed mesa The fol

Re: removing a local portfile repository

2018-08-16 Thread Langer, Stephen A. (Fed)
Never mind.. I didn't realize that portindex just acts locally. -- Steve On 8/16/18, 1:41 PM, "Langer, Stephen A. (Fed)" wrote: Hi -- https://guide.macports.org/chunked/development.local-repositories.html contains instructions for adding a local port file re

removing a local portfile repository

2018-08-16 Thread Langer, Stephen A. (Fed)
Hi -- https://guide.macports.org/chunked/development.local-repositories.html contains instructions for adding a local port file repository. When I'm done with the local repository, how can I delete it? Is removing it from sources.conf sufficient? Do I somehow need to undo the effect of runni

Re: Advice on distributing a project

2018-07-01 Thread Langer, Stephen A. (Fed)
On 7/1/18, 2:33 AM, "Joshua Root" wrote: On 2018-6-29 01:18 , Langer, Stephen A. (Fed) wrote: > > I meant to add a link to our distutils source, if anyone's interested: > https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub

Re: Advice on distributing a project

2018-06-28 Thread Langer, Stephen A. (Fed)
On 6/28/18, 4:00 PM, "Ryan Schmidt" wrote: On Jun 28, 2018, at 14:56, Langer, Stephen A. (Fed) wrote: > It's the same problem as https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftrac.macports.org%2Fticket%2F56461&data=02%7C01%7Cste

Re: Advice on distributing a project

2018-06-28 Thread Langer, Stephen A. (Fed)
On 6/28/18, 3:30 PM, "Ryan Schmidt" wrote: On Jun 28, 2018, at 14:00, Langer, Stephen A. (Fed) wrote: > It *is* rebuilding glib2 when I run "port mpkg oof3d". I have -x11 +no_x11 +quartz in variants.conf, but glib2 is installed with +x11. Is

Re: Advice on distributing a project

2018-06-28 Thread Langer, Stephen A. (Fed)
On 6/28/18, 12:17 PM, "Ryan Schmidt" wrote: On Jun 28, 2018, at 11:02, Langer, Stephen A. (Fed) wrote: > In any case, thanks to all of your suggestions, I can now build and install using the Portfile. I can create an mpkg and install from it. However, the co

FW: Advice on distributing a project

2018-06-28 Thread Langer, Stephen A. (Fed)
Oops -- forgot to reply to the list. On 6/28/18, 2:09 PM, "Langer, Stephen A. (Fed)" mailto:stephen.lan...@nist.gov>> wrote: On 6/28/18, 12:17 PM, "Ryan Schmidt" wrote: On Jun 28, 2018, at 11:02, Langer, Stephen A. (Fed) wrote: > In an

Re: Advice on distributing a project

2018-06-28 Thread Langer, Stephen A. (Fed)
On 6/28/18, 4:54 AM, "Ryan Schmidt" wrote: On Jun 27, 2018, at 13:47, Langer, Stephen A. (Fed) wrote: > It requires knowing the installation prefix during the distutils build stage, which certainly can be done, but I don't think it's standard in th

Re: Advice on distributing a project

2018-06-28 Thread Langer, Stephen A. (Fed)
On 6/28/18, 11:12 AM, "macports-users on behalf of Langer, Stephen A. (Fed)" wrote: On 6/28/18, 5:39 AM, "Joshua Root" wrote: On 2018-6-28 18:54 , Ryan Schmidt wrote: > > macOS has been around for over 17 years. It would be

Re: Advice on distributing a project

2018-06-28 Thread Langer, Stephen A. (Fed)
On 6/28/18, 5:39 AM, "Joshua Root" wrote: On 2018-6-28 18:54 , Ryan Schmidt wrote: > > macOS has been around for over 17 years. It would be weird if in all that time Python hasn't developed an easy way to create correct dylibs. My assumption therefore is that such an easy method

Re: Advice on distributing a project

2018-06-27 Thread Langer, Stephen A. (Fed)
On 6/27/18, 12:28 AM, "Ryan Schmidt" wrote: On Jun 26, 2018, at 10:07, Langer, Stephen A. (Fed) wrote: > That's what I don't understand. When not using MacPorts, we use install_name_tool to fix the libraries. They're built in $HOME/project/b

Re: Advice on distributing a project

2018-06-26 Thread Langer, Stephen A. (Fed)
On 6/25/18, 8:42 PM, "Joshua Root" wrote: > I still have at least one problem. We had to extend distutils so that it builds a few .dylib shared libraries that are linked to by the more standardly built python extension modules, which are all .so bundles. All of them are being installe

Re: Advice on distributing a project

2018-06-25 Thread Langer, Stephen A. (Fed)
On 6/22/18, 10:35 PM, "Ryan Schmidt" wrote: On Jun 22, 2018, at 09:12, Langer, Stephen A. (Fed) wrote: > If I change the MacPorts build phase so that it runs "python setup.py build install --prefix=${destroot}, then everything that MacPorts needs to

Re: Advice on distributing a project

2018-06-22 Thread Langer, Stephen A. (Fed)
On 6/22/18, 10:28 AM, "Joshua Root" wrote: > I'm making some progress in writing a Portfile for my project, but I'm stuck on one point. The project's build script uses python distutils (which I'd be happy to get rid of but that's not likely to happen soon). The build commands, outside

Re: Advice on distributing a project

2018-06-22 Thread Langer, Stephen A. (Fed)
On 6/21/18, 11:01 PM, "Ryan Schmidt" wrote: On Jun 21, 2018, at 16:46, Langer, Stephen A. (Fed) wrote: > Hi-- > > I'm making some progress in writing a Portfile for my project, but I'm stuck on one point. The project's build s

Re: Advice on distributing a project

2018-06-21 Thread Langer, Stephen A. (Fed)
rtz and not +x11): require_active_variants gtk2 quartz x11 David On Fri, Jun 15, 2018 at 6:53 PM, Ryan Schmidt mailto:ryandes...@macports.org>> wrote: On Jun 14, 2018, at 12:58, Langer, Stephen A. (Fed) wrote: > Thanks for the advice. If I make a new non-standardly located macports > directo

Re: Advice on distributing a project

2018-06-14 Thread Langer, Stephen A. (Fed)
On 6/13/18, 8:37 PM, "Craig Treleaven" wrote: > On Jun 13, 2018, at 6:35 PM, Rainer Müller wrote: > > On 2018-06-13 21:37, Langer, Stephen A. (Fed) wrote: >> (2) Package all of the compiled libraries and dependencies into a Mac-like app and distr

Advice on distributing a project

2018-06-13 Thread Langer, Stephen A. (Fed)
Hi -- I develop a program that has until now been distributed just as source code, along with instructions on how to use MacPorts and other package managers to install its dependencies on macOS and various flavors of Linux. Our build script compiles the program and installs C++ libraries and

Re: what version of OpenGL is in mesa?

2018-01-29 Thread Langer, Stephen A. (Fed)
(-0500), Langer, Stephen A. (Fed) wrote: > I should have included the exact error message. This is what vtk says > when it encounters OpenGL from macports mesa: > > Warning: In … Rendering/OpenGL2/vtkOpenGLRenderWindow.cxx, line 800 > vtkXOpenGLRenderWindow (0x7fc

Re: what version of OpenGL is in mesa?

2018-01-26 Thread Langer, Stephen A. (Fed)
been given a context that does not support 3.2. VTK will run in a compatibility mode designed to work with earlier versions of OpenGL but some features may not work. -- Steve On 1/26/18, 11:38 AM, "macports-users on behalf of Langer, Stephen A. (Fed)" wrote: Hi --

what version of OpenGL is in mesa?

2018-01-26 Thread Langer, Stephen A. (Fed)
Hi -- What version of OpenGL is in the mesa port? When I build an X11 version of vtk, it fails to run because it says that the OpenGL library doesn't support OpenGL2 or later. Grepping for VERSION in /opt/local/include/GL/gl.h implies that only OpenGL 1 is supported, but the rest of the GL h

Re: switching between x11 and quartz

2017-10-28 Thread Langer, Stephen A. (Fed)
already suggest setting "startupitem_install no" even when not using symlinks, so that's what I'm doing. -- Steve On 10/27/17, 8:33 PM, "Ryan Schmidt" wrote: On Oct 27, 2017, at 09:14, Langer, Stephen A. (Fed) wrote: > > Would it work to u

Re: switching between x11 and quartz

2017-10-27 Thread Langer, Stephen A. (Fed)
Ports? Will anything in macports break if it's used via the symlinks that stow sets up? -- Steve On 10/26/17, 6:09 PM, "Ryan Schmidt" wrote: On Oct 26, 2017, at 10:59, Langer, Stephen A. (Fed) wrote: > > Is there an easy way to switch back and forth betwee

Re: switching between x11 and quartz

2017-10-27 Thread Langer, Stephen A. (Fed)
Thanks. I had thought of setting up a separate installation, but didn't want to do it if it there were a simpler way. -- Steve On 10/26/17, 6:09 PM, "Ryan Schmidt" wrote: On Oct 26, 2017, at 10:59, Langer, Stephen A. (Fed) wrote: > > Is there an easy way to

switching between x11 and quartz

2017-10-26 Thread Langer, Stephen A. (Fed)
Hi -- Is there an easy way to switch back and forth between x11 and quartz variants? I have a bunch of ports installed that have one or the other or both variants. The code I'm developing relies on many ports and used to require x11, but now I'm debugging a quartz version. I tried install

vtk in gtk

2017-10-16 Thread Langer, Stephen A. (Fed)
Hi -- I'm using vtk in a program that has a gtk2 GUI. To embed the vtk window in gtk, on Linux I can do this: vtkRenderWindow *render_win = vtkRenderWindow::New(); GtkWidget *drawing_area = gtk_drawing_area_new(); Display *disp = GDK_DISPLAY(); render_win->SetDisplayId(disp); fo

Re: X11 won't start

2017-04-05 Thread Langer, Stephen A. (Fed)
gt;> on behalf of "m...@macports.org<mailto:m...@macports.org>" mailto:m...@macports.org>> Date: Tuesday, April 4, 2017 at 10:38 AM To: "macports-users@lists.macports.org<mailto:macports-users@lists.macports.org>" mailto:macports-users@lists.macports.o

Re: X11 won't start

2017-04-04 Thread Langer, Stephen A. (Fed)
e any problems running X11 with macports on a different computer. -- Steve From: macports-users on behalf of "m...@macports.org" Date: Tuesday, April 4, 2017 at 10:38 AM To: "macports-users@lists.macports.org" Subject: Re: X11 won't start Hi Steve,

X11 won't start

2017-04-04 Thread Langer, Stephen A. (Fed)
Hi -- I just updated my computer to Sierra, and now X11 won't start. I presumed that I had messed up the macports migration, so I just uninstalled everything and installed only xorg-server and xterm, but I'm still getting the same error. There's an "X11 quit unexpectedly" dialog, which keeps

Re: Trouble upgrading Macports to Sierra

2017-03-30 Thread Langer, Stephen A. (Fed)
This reminds me of something I’ve been wondering about. Why do the migration instructions recommend explicitly reinstalling all previously installed ports, and then optionally marking the previously requested ports as “requested”? Isn’t it simpler to explicitly reinstall only the previously r