{"id":19795594,"url":"https://github.com/dkogan/python_extensions_without_setuptools","last_synced_at":"2026-03-19T11:46:07.878Z","repository":{"id":136714643,"uuid":"177226012","full_name":"dkogan/python_extensions_without_setuptools","owner":"dkogan","description":null,"archived":false,"fork":false,"pushed_at":"2019-03-23T00:39:39.000Z","size":5,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-11T02:25:38.209Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Makefile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dkogan.png","metadata":{"files":{"readme":"README.org","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-03-23T00:33:12.000Z","updated_at":"2024-10-13T03:06:25.000Z","dependencies_parsed_at":"2023-07-03T09:00:37.263Z","dependency_job_id":null,"html_url":"https://github.com/dkogan/python_extensions_without_setuptools","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dkogan/python_extensions_without_setuptools","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkogan%2Fpython_extensions_without_setuptools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkogan%2Fpython_extensions_without_setuptools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkogan%2Fpython_extensions_without_setuptools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkogan%2Fpython_extensions_without_setuptools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dkogan","download_url":"https://codeload.github.com/dkogan/python_extensions_without_setuptools/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkogan%2Fpython_extensions_without_setuptools/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30079737,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T12:28:08.313Z","status":"ssl_error","status_checked_at":"2026-03-04T12:27:28.210Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-12T07:16:46.650Z","updated_at":"2026-03-04T12:31:16.399Z","avatar_url":"https://github.com/dkogan.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"Demo for building python extension modules with just Make, and not setuptools or\ndistutils or anything.\n\nThis is described in a [[http://notes.secretsauce.net/notes/2017/11/14_python-extension-modules-without-setuptools-or-distutils.html][blog post]]. And this has been integrated into the [[https://github.com/dkogan/mrbuild][mrbuild\nbuild system]]\n\nYou can build and run the demo in python3 like so:\n\n#+BEGIN_EXAMPLE\n$ V=3; PYTHONVER=$V make; python$V test.py\n\ncc  -std=gnu99 -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -flto -fuse-linker-plugin -ffat-lto-objects -fPIC -I/usr/include/python3.7m  -O3 -c -o c_library_pywrap.o c_library_pywrap.c\ncc  -std=gnu99 -fPIC  -O3 -c -o c_library.o c_library.c\ncc -shared -Wl,--default-symver -fPIC -Wl,-soname,libc_library.so.0 c_library.o   -o libc_library.so.0.0\nln -fs libc_library.so.0.0 libc_library.so\nx86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro c_library_pywrap.o -lc_library -o project/c_library.cpython-37m-x86_64-linux-gnu.so -L/home/dima/projects/python_extensions_without_setuptools -Wl,-rpath=/home/dima/projects/python_extensions_without_setuptools\nln -fs libc_library.so.0.0 libc_library.so.0\n\nin f() Python wrapper. About to call C library\nin f() written in C\nin my written-in-python module g(). Calling c_library.f()\nin f() Python wrapper. About to call C library\nin f() written in C\n#+END_EXAMPLE\n\nTo use python2 instead, set =V=2=.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdkogan%2Fpython_extensions_without_setuptools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdkogan%2Fpython_extensions_without_setuptools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdkogan%2Fpython_extensions_without_setuptools/lists"}