Skip to content

Problem creating extension in python3.3 with mingw32 #62410

Closed

Description

@adityaatluri
BPO 18210
Nosy @amauryfa, @tarekziade, @merwok
Files
  • Build-Bug.zip
  • 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/merwok'
    closed_at = <Date 2013-06-14.09:56:00.665>
    created_at = <Date 2013-06-14.09:43:21.375>
    labels = ['extension-modules', 'invalid', 'library']
    title = 'Problem creating extension in python3.3 with mingw32'
    updated_at = <Date 2013-06-14.09:56:00.663>
    user = 'https://bugs.python.org/adityaatluri'

    bugs.python.org fields:

    activity = <Date 2013-06-14.09:56:00.663>
    actor = 'amaury.forgeotdarc'
    assignee = 'eric.araujo'
    closed = True
    closed_date = <Date 2013-06-14.09:56:00.665>
    closer = 'amaury.forgeotdarc'
    components = ['Distutils', 'Extension Modules']
    creation = <Date 2013-06-14.09:43:21.375>
    creator = 'adityaatluri'
    dependencies = []
    files = ['30582']
    hgrepos = []
    issue_num = 18210
    keywords = []
    message_count = 2.0
    messages = ['191113', '191114']
    nosy_count = 4.0
    nosy_names = ['amaury.forgeotdarc', 'tarek', 'eric.araujo', 'adityaatluri']
    pr_nums = []
    priority = 'normal'
    resolution = 'not a bug'
    stage = None
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue18210'
    versions = ['Python 3.3']

    Activity

    1. adityaatluri commented on Jun 14, 2013

      adityaatlurimannequin
      MannequinAuthor

      I am trying to build c extensions in windows using mingw32. The file hello.c works fine with 2.7 but, errors are poping up in 3.3.
      Attachments:
      [1] log.txt : The errors
      [2] hello.c : The C file
      [3] setup.py: The setup file

      The command I used in cmd is, "python setup.py build -c mingw32"

    2. added
      stdlibStandard Library Python modules in the Lib/ directory
      on Jun 14, 2013
    3. amauryfa commented on Jun 14, 2013

      @amauryfa
      Contributor

      Python3 has a new API to create modules: PyModule_Create() and PyModuleDef.

      See also:
      http://docs.python.org/3/howto/cporting.html?highlight=pymodule_create#module-initialization-and-state

    4. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    Labels

    extension-modulesC modules in the Modules dirstdlibStandard Library Python modules in the Lib/ directory

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions