{"id":16752896,"url":"https://github.com/luser/autoconftopy","last_synced_at":"2025-07-22T18:33:47.104Z","repository":{"id":20060073,"uuid":"23328703","full_name":"luser/autoconftopy","owner":"luser","description":"Insanity","archived":false,"fork":false,"pushed_at":"2014-08-26T12:40:51.000Z","size":144,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-16T05:22:53.106Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/luser.png","metadata":{"files":{"readme":"README.md","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}},"created_at":"2014-08-25T21:04:29.000Z","updated_at":"2017-03-11T07:18:52.000Z","dependencies_parsed_at":"2022-08-31T05:21:20.694Z","dependency_job_id":null,"html_url":"https://github.com/luser/autoconftopy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/luser/autoconftopy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luser%2Fautoconftopy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luser%2Fautoconftopy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luser%2Fautoconftopy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luser%2Fautoconftopy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/luser","download_url":"https://codeload.github.com/luser/autoconftopy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luser%2Fautoconftopy/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266552555,"owners_count":23947178,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"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-10-13T02:48:28.119Z","updated_at":"2025-07-22T18:33:47.081Z","avatar_url":"https://github.com/luser.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"This script aims to translate a configure.in autoconf script into a Python script.\n\nIt does this by using an M4 parser to parse the M4 input, and then a shell parser to parse the resulting shell script into an AST and translating that into a Python AST. Neither the M4 parser nor the shell parser aim to be 100% compatible, the goal is to parse just enough to get Mozilla's configure.in working.\n\nThe script does not attempt to parse any of the core autoconf m4 scripts, nor any of the aclocal-included scripts. Instead the full set of macros used are defined in the script, and they can be written to emit shell or Python code directly as needed.\n\nInstall Dependencies\n====================\n\ngit clone https://github.com/luser/pym4.git\ngit clone https://github.com/luser/Meta.git\n(cd Meta; git checkout fix-string-format-directive)\nhg clone https://bitbucket.org/tedmielczarek/pysh\n\nvirtualenv ./venv\n. ./venv/bin/activate\n(cd Meta; python setup.py install)\nexport PYTHONPATH=`pwd`/pym4:`pwd`/pysh\n\nRun the script\n==============\n\npython autoconf.py \u003c /path/to/configure.in \u003e configure.py\n\nNote: if you are attempting to translate Mozilla's configure.in you will need to apply the configure.patch in this repository.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluser%2Fautoconftopy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluser%2Fautoconftopy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluser%2Fautoconftopy/lists"}