Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

distutils should support a custom list of exported symbols for Windows dlls. #55833

Closed
dholth mannequin opened this issue Mar 21, 2011 · 3 comments
Closed

distutils should support a custom list of exported symbols for Windows dlls. #55833

dholth mannequin opened this issue Mar 21, 2011 · 3 comments
Assignees
Labels
type-feature A feature request or enhancement

Comments

@dholth
Copy link
Mannequin

dholth mannequin commented Mar 21, 2011

BPO 11624
Nosy @tarekziade, @merwok, @dholth

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = 'https://github.com/tarekziade'
closed_at = <Date 2012-07-13.12:33:57.695>
created_at = <Date 2011-03-21.17:31:46.027>
labels = ['type-feature', 'invalid']
title = 'distutils should support a custom list of exported symbols for Windows dlls.'
updated_at = <Date 2012-07-13.12:33:57.694>
user = 'https://github.com/dholth'

bugs.python.org fields:

activity = <Date 2012-07-13.12:33:57.694>
actor = 'dholth'
assignee = 'tarek'
closed = True
closed_date = <Date 2012-07-13.12:33:57.695>
closer = 'dholth'
components = ['Distutils2']
creation = <Date 2011-03-21.17:31:46.027>
creator = 'dholth'
dependencies = []
files = []
hgrepos = []
issue_num = 11624
keywords = []
message_count = 3.0
messages = ['131677', '131700', '165375']
nosy_count = 4.0
nosy_names = ['tarek', 'eric.araujo', 'dholth', 'alexis']
pr_nums = []
priority = 'normal'
resolution = 'not a bug'
stage = None
status = 'closed'
superseder = None
type = 'enhancement'
url = 'https://bugs.python.org/issue11624'
versions = ['Python 3.3']

@dholth
Copy link
Mannequin Author

dholth mannequin commented Mar 21, 2011

I would like to be able to use distutils to compile a shared library with a different set of exported symbols than the default.

In Windows, distutils only exports certain symbols needed for the Python module initialization API when it compiles a shared module. It does this by passing a file to the C compiler that lists those symbols. In Linux all symbols are exported/visible by default because that's just how the linker has traditionally worked.

I would like to be able to override or augment this list of symbols. Probably by just providing my own 'symbols to export' file.

distutils is definitely the poor man's compiler frontend but this feature would make it easier for me to support Windows (Python's secret shame.)

@dholth dholth mannequin assigned tarekziade Mar 21, 2011
@dholth dholth mannequin added the type-feature A feature request or enhancement label Mar 21, 2011
@merwok
Copy link
Member

merwok commented Mar 21, 2011

Would you like to work on a patch?

@dholth
Copy link
Mannequin Author

dholth mannequin commented Jul 13, 2012

I must have missed the export_symbols keyword argument to Extension(), or it was added.

@dholth dholth mannequin closed this as completed Jul 13, 2012
@dholth dholth mannequin added the invalid label Jul 13, 2012
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-feature A feature request or enhancement
Projects
None yet
Development

No branches or pull requests

1 participant