{"id":15589968,"url":"https://github.com/shimizukawa/chef-python-build","last_synced_at":"2025-04-11T15:21:47.543Z","repository":{"id":6524861,"uuid":"7765840","full_name":"shimizukawa/chef-python-build","owner":"shimizukawa","description":"This cookbook build and install python versions from official source.","archived":false,"fork":false,"pushed_at":"2014-10-22T14:16:42.000Z","size":338,"stargazers_count":10,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-25T11:22:11.430Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/shimizukawa.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":"2013-01-23T02:00:39.000Z","updated_at":"2015-07-29T21:49:38.000Z","dependencies_parsed_at":"2022-09-08T03:00:56.381Z","dependency_job_id":null,"html_url":"https://github.com/shimizukawa/chef-python-build","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shimizukawa%2Fchef-python-build","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shimizukawa%2Fchef-python-build/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shimizukawa%2Fchef-python-build/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shimizukawa%2Fchef-python-build/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shimizukawa","download_url":"https://codeload.github.com/shimizukawa/chef-python-build/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248429201,"owners_count":21101816,"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","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-02T23:15:02.909Z","updated_at":"2025-04-11T15:21:47.511Z","avatar_url":"https://github.com/shimizukawa.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"python-build Cookbook\n======================\n\nThis cookbook build and install several python versions from official source.\nPython-2.4, 2.5, 2.6, 2.7, 3.0, 3.1, 3.2, 3.3. however 3.0 is limited work with 'packages' attribute.\n\nRequirements\n------------\n\n#### cookbook\n- `build-essential` - building python needs gcc and related headers.\n\nAttributes\n----------\n\n#### python-build::default\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003cth\u003eKey\u003c/th\u003e\n    \u003cth\u003eType\u003c/th\u003e\n    \u003cth\u003eDescription\u003c/th\u003e\n    \u003cth\u003eDefault\u003c/th\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\u003ctt\u003e[\"python_build\"][\"archive_url_base\"]\u003c/tt\u003e\u003c/td\u003e\n    \u003ctd\u003estring\u003c/td\u003e\n    \u003ctd\u003ePython source file location. python official site is default.\u003c/td\u003e\n    \u003ctd\u003e\u003ctt\u003enil\u003c/tt\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\u003ctt\u003e[\"python_build\"][\"configure_options\"]\u003c/tt\u003e\u003c/td\u003e\n    \u003ctd\u003earray\u003c/td\u003e\n    \u003ctd\u003econfigure options\u003c/td\u003e\n    \u003ctd\u003e\u003ctt\u003e['--enable-shared']\u003c/tt\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\u003ctt\u003e[\"python_build\"][\"install_prefix\"]\u003c/tt\u003e\u003c/td\u003e\n    \u003ctd\u003estring\u003c/td\u003e\n    \u003ctd\u003eInstall path prefix\u003c/td\u003e\n    \u003ctd\u003e\u003ctt\u003e\"/usr/local\"\u003c/tt\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\u003ctt\u003e[\"python_build\"][\"versions\"]\u003c/tt\u003e\u003c/td\u003e\n    \u003ctd\u003estring\u003c/td\u003e\n    \u003ctd\u003eInstall versions list. If you want to specify default version of python then it place last of the list. for example: `\"versions\": [\"2.5.6\", \"3.3.1\", \"2.7.3\"]`\u003c/td\u003e\n    \u003ctd\u003e\u003ctt\u003e[]\u003c/tt\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\u003ctt\u003e[\"python_build\"][\"packages\"]\u003c/tt\u003e\u003c/td\u003e\n    \u003ctd\u003estring\u003c/td\u003e\n    \u003ctd\u003eInstall python 3rd-party package list. \"setuptools\" will install by default. BTW setuptools did not support Python-3.0 then this feature did not work when specify '3.0.x' in versions.\u003c/td\u003e\n    \u003ctd\u003e\u003ctt\u003e[]\u003c/tt\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\u003ctt\u003e[\"python_build\"][\"owner\"]\u003c/tt\u003e\u003c/td\u003e\n    \u003ctd\u003estring\u003c/td\u003e\n    \u003ctd\u003eInstall file/directory owner.\u003c/td\u003e\n    \u003ctd\u003e\u003ctt\u003e\"root\"\u003c/tt\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\u003ctt\u003e[\"python_build\"][\"group\"]\u003c/tt\u003e\u003c/td\u003e\n    \u003ctd\u003estring\u003c/td\u003e\n    \u003ctd\u003eInstall file/directory group.\u003c/td\u003e\n    \u003ctd\u003e\u003ctt\u003e\"root\"\u003c/tt\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\u003ctt\u003e[\"python_build\"][\"find_links\"]\u003c/tt\u003e\u003c/td\u003e\n    \u003ctd\u003estring\u003c/td\u003e\n    \u003ctd\u003elist of package urls for easy_install -f\u003c/td\u003e\n    \u003ctd\u003e\u003ctt\u003e[]\u003c/tt\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\nUsage\n-----\n#### python-build::default\n\nInclude `python-build` in your node's `run_list` and specify `python_build` attributes:\n\n```json\n{\n  \"name\":\"my_node\",\n  \"run_list\": [\n    \"recipe[python-build]\"\n  ],\n  \"override_attributes\" : {\n    \"python_build\": {\n      \"versions\" : [\"2.6.8\", \"2.7.3\", \"3.2.3\", \"3.3.0\"],\n      \"packages\" : [\"pip\", \"tox\", \"virtualenv\"]\n    }\n  }\n}\n```\n\nContributing\n------------\n\n1. Fork the repository on Github\n2. Create a named feature branch (like `add_component_x`)\n3. Write you change\n4. Write tests for your change (if applicable)\n5. Run the tests, ensuring they all pass\n6. Submit a Pull Request using Github\n\nLicense and Authors\n-------------------\nAuthors: Takayuki Shimizukawa\nLicense: Apache 2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshimizukawa%2Fchef-python-build","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshimizukawa%2Fchef-python-build","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshimizukawa%2Fchef-python-build/lists"}