{"action":"created","issue":{"url":"https://api.github.com/repos/joerick/cibuildwheel/issues/16","repository_url":"https://api.github.com/repos/joerick/cibuildwheel","labels_url":"https://api.github.com/repos/joerick/cibuildwheel/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/joerick/cibuildwheel/issues/16/comments","events_url":"https://api.github.com/repos/joerick/cibuildwheel/issues/16/events","html_url":"https://github.com/joerick/cibuildwheel/issues/16","id":240663023,"number":16,"title":"Add CIBW_ENVIRONMENT option","user":{"login":"YannickJadoul","id":8025744,"avatar_url":"https://avatars3.githubusercontent.com/u/8025744?v=3","gravatar_id":"","url":"https://api.github.com/users/YannickJadoul","html_url":"https://github.com/YannickJadoul","followers_url":"https://api.github.com/users/YannickJadoul/followers","following_url":"https://api.github.com/users/YannickJadoul/following{/other_user}","gists_url":"https://api.github.com/users/YannickJadoul/gists{/gist_id}","starred_url":"https://api.github.com/users/YannickJadoul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YannickJadoul/subscriptions","organizations_url":"https://api.github.com/users/YannickJadoul/orgs","repos_url":"https://api.github.com/users/YannickJadoul/repos","events_url":"https://api.github.com/users/YannickJadoul/events{/privacy}","received_events_url":"https://api.github.com/users/YannickJadoul/received_events","type":"User","site_admin":false},"labels":[{"id":564406766,"url":"https://api.github.com/repos/joerick/cibuildwheel/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":564406767,"url":"https://api.github.com/repos/joerick/cibuildwheel/labels/help%20wanted","name":"help wanted","color":"128A0C","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2017-07-05T14:08:32Z","updated_at":"2017-07-06T04:41:29Z","closed_at":null,"body":"Sorry to open yet another issue, but in my efforts to try getting my wheels built on the manylinux docker image, I'm running into the problem that there seems no way in `cibuildwheel` to prepare the container (i.e. install stuff and set environment variables).\r\n\r\nIn my particular case, for example, I want to install a newer GCC toolchain (https://github.com/squeaky-pl/centos-devtools/releases), set the PATH to use it, and set the `CXXFLAGS` to be picked up by my build.\r\n\r\nAm I overlooking a possibilty, or is this currently not possible?\r\n\r\n(Probably also related to #13)"},"comment":{"url":"https://api.github.com/repos/joerick/cibuildwheel/issues/comments/313293402","html_url":"https://github.com/joerick/cibuildwheel/issues/16#issuecomment-313293402","issue_url":"https://api.github.com/repos/joerick/cibuildwheel/issues/16","id":313293402,"user":{"login":"tgarc","id":431388,"avatar_url":"https://avatars0.githubusercontent.com/u/431388?v=3","gravatar_id":"","url":"https://api.github.com/users/tgarc","html_url":"https://github.com/tgarc","followers_url":"https://api.github.com/users/tgarc/followers","following_url":"https://api.github.com/users/tgarc/following{/other_user}","gists_url":"https://api.github.com/users/tgarc/gists{/gist_id}","starred_url":"https://api.github.com/users/tgarc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tgarc/subscriptions","organizations_url":"https://api.github.com/users/tgarc/orgs","repos_url":"https://api.github.com/users/tgarc/repos","events_url":"https://api.github.com/users/tgarc/events{/privacy}","received_events_url":"https://api.github.com/users/tgarc/received_events","type":"User","site_admin":false},"created_at":"2017-07-06T04:41:29Z","updated_at":"2017-07-06T04:41:29Z","body":"> This is actually only necessary in Linux. Since OS X and Windows don't have docker images, you can just do all these things before calling cibuildwheel. So ... should we make this something specific for Linux, or something extra for all platforms for the sake of consistency?\r\n\r\nI think what has been discussed so far has been the lack of ability to customize the linux docker environment so I would tend to focus on that. But even if focusing on just linux there is the case of 32-bit and 64-bit architectures. Do we provide a separate ENVIRONMENT variable for each of these? Maybe. But if we start going the way of adding specific options for every possible platform things get kinda ugly quick. (And somebody has to maintain that mess..)\r\n\r\n> Since that's being run in sh -c, you cannot export any environment variables there, because they will not propagate to the parent scope.\r\n\r\nAnd if the ``sh -c`` was removed, would that allow you to do what you wanted?"}}
{"actor":{"display_login":"tgarc"}}