Opened 11 years ago

Closed 9 years ago

#39573 closed request (fixed)

quickfix python bindings

Reported by: posita (Matt Bogosian) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: Cc: kurthindenburg (Kurt Hindenburg), ryandesign (Ryan Carsten Schmidt)
Port:

Description

quickfix has bindings for several languages, including python. These are enabled by (e.g.):

./configure ... --with-python=.../include/python[X].[Y] ...

It would be nice to have py-quickfix packages in addition to the base package.

I am new to authoring Portfiles. For example, I do not know if these should belong as variants to devel/quickfix (because they are built using the same sources), or if they should be in a separate Portfile in (e.g.) python/py[XY]-quickfix. I would be willing to take a stab at this if someone could point me to a similarly built library as an example....

Attachments (1)

quickfix.zip (3.5 MB) - added by rodaddy (Rico) 11 years ago.
a zip File with needed files to make quickFix for py27 work & instructions

Change History (10)

comment:1 Changed 11 years ago by c.herbig@…

I'm far from an expert on writing port files, but it seems to be the latter. Perhaps taking a look at py27-gobject and py33-gobject will help?

comment:2 Changed 11 years ago by posita (Matt Bogosian)

I know one can create separate python packages for these, but I'm not sure this is the appropriate approach. For example, is the only way to do this by creating (e.g.) <.../python/py-quickfix/Portfile> (etc.)? Or can it be done by modifying <.../devel/quickfix/Portfile>?

There are several MacPorts-specific patches that need to be applied to quickfix before it is built. It seems to me creating an entirely separate python package would create a maintenance headache (i.e., it would have to make sure its version, patches, etc. were in sync with the devel/quickfix port).

Instead, I would like to modify devel/quickfix/Portfile to include python variants for the python interface. How do I do that in devel/quickfix, or is that not possible? Can someone point me to an example of a similar package?

comment:3 Changed 11 years ago by larryv (Lawrence Velázquez)

Can the Python bindings be built separately from QuickFIX? If so, I think adding subports to the quickfix port would be the cleanest solution. Variants are not desirable, unless the bindings have to be built at the same time as everything else.

Changed 11 years ago by rodaddy (Rico)

Attachment: quickfix.zip added

a zip File with needed files to make quickFix for py27 work & instructions

comment:4 Changed 11 years ago by rodaddy (Rico)

I have no idea how to make a port file, so I didn't. but I did just include a ZIP with the files needed and instructions on how to get them to work with a MacPorts install of python2.7

Cheers,

Rico

FYI, this is the only way to get quickfix onto Mavericks, due to the change in the C interpreter in Mavericks.

comment:5 Changed 10 years ago by kurthindenburg (Kurt Hindenburg)

Cc: khindenburg@… added

Cc Me!

comment:6 Changed 10 years ago by kurthindenburg (Kurt Hindenburg)

Currently, the Portfile has this:

variant python description {Include python support} {
   depends_lib-append      port:python26
   configure.args-append   --with-python=${prefix}
   patchfiles-append       patch-python.diff
}

Right now, macports is only supporting python27 and python34, so these 2 would need their own variants

comment:7 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added

In r144353 I added python27, python34 and python35 variants and deprecated the existing python variant. Is that sufficient to close this ticket?

comment:8 Changed 9 years ago by posita (Matt Bogosian)

@ryandesign, it should be. Thanks!

comment:9 Changed 9 years ago by kurthindenburg (Kurt Hindenburg)

Resolution: fixed
Status: newclosed

closing per comment:8

Note: See TracTickets for help on using tickets.