Opened 8 years ago

Closed 6 years ago

#945 closed enhancement (wontfix)

RFE: ctypes-friendly plugin build system

Reported by: Tristan Croll Owned by: Conrad Huang
Priority: moderate Milestone:
Component: Tool Shed Version:
Keywords: Cc:
Blocked By: Blocking:
Notify when closed: Platform: all
Project: ChimeraX

Description

See https://stackoverflow.com/questions/4529555/building-a-ctypes-based-c-library-with-distutils. Solves two issues with using the standard setuptools build pipeline with ctypes. One (minor, but annoying): the compiled library gets an unnecessary platform-specific addition to its filename (e.g. "_geometry.cpython-36m-x86_64-linux-gnu.so") which has to be dealt with when working out the filename to import. Two: apparently a library designed for ctypes (i.e. without any Python init function) will fail during build on Windows.

Change History (3)

comment:1 by Conrad Huang, 6 years ago

Status: assignedfeedback

The existing build system basically depends on the developer to compile non-Python libraries and include them in the distribution, mainly because there are so many different ways that one might build a library. Is there a strong use case for ctypes-specific libraries?

in reply to:  2 ; comment:2 by tic20@…, 6 years ago

Just go ahead and close this, I think. Ancient history.

On 2019-06-14 19:48, ChimeraX wrote:

comment:3 by Conrad Huang, 6 years ago

Resolution: wontfix
Status: feedbackclosed
Note: See TracTickets for help on using tickets.