{"metadata":{"kernelspec":{"language":"python","display_name":"Python 3","name":"python3"},"language_info":{"pygments_lexer":"ipython3","nbconvert_exporter":"python","version":"3.6.4","file_extension":".py","codemirror_mode":{"name":"ipython","version":3},"name":"python","mimetype":"text/x-python"}},"nbformat_minor":4,"nbformat":4,"cells":[{"cell_type":"markdown","source":"# Creating wheel to install `pyradiomics`","metadata":{}},{"cell_type":"code","source":"!pip install pyradiomics","metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","execution":{"iopub.status.busy":"2023-02-26T21:02:01.231659Z","iopub.execute_input":"2023-02-26T21:02:01.232044Z","iopub.status.idle":"2023-02-26T21:02:13.865475Z","shell.execute_reply.started":"2023-02-26T21:02:01.231965Z","shell.execute_reply":"2023-02-26T21:02:13.862707Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"!pip show pyradiomics","metadata":{"execution":{"iopub.status.busy":"2023-02-26T21:02:13.868647Z","iopub.execute_input":"2023-02-26T21:02:13.869193Z","iopub.status.idle":"2023-02-26T21:02:22.326524Z","shell.execute_reply.started":"2023-02-26T21:02:13.86916Z","shell.execute_reply":"2023-02-26T21:02:22.324667Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"!mkdir wheelhouse\n%cd wheelhouse","metadata":{"execution":{"iopub.status.busy":"2023-02-26T21:02:22.328862Z","iopub.execute_input":"2023-02-26T21:02:22.32924Z","iopub.status.idle":"2023-02-26T21:02:22.617872Z","shell.execute_reply.started":"2023-02-26T21:02:22.329205Z","shell.execute_reply":"2023-02-26T21:02:22.616559Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"`pip wheel` command will create all the whl files needed to install the package.","metadata":{}},{"cell_type":"code","source":"!pip wheel pyradiomics","metadata":{"execution":{"iopub.status.busy":"2023-02-26T21:02:22.621022Z","iopub.execute_input":"2023-02-26T21:02:22.621378Z","iopub.status.idle":"2023-02-26T21:02:28.095554Z","shell.execute_reply.started":"2023-02-26T21:02:22.621344Z","shell.execute_reply":"2023-02-26T21:02:28.094796Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"!ls # current working directory is '/kaggle/working/wheelhouse'","metadata":{"execution":{"iopub.status.busy":"2023-02-26T21:02:28.096547Z","iopub.execute_input":"2023-02-26T21:02:28.096814Z","iopub.status.idle":"2023-02-26T21:02:28.397182Z","shell.execute_reply.started":"2023-02-26T21:02:28.096789Z","shell.execute_reply":"2023-02-26T21:02:28.395685Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"%cd ../\n!ls","metadata":{"execution":{"iopub.status.busy":"2023-02-26T21:02:28.398999Z","iopub.execute_input":"2023-02-26T21:02:28.399644Z","iopub.status.idle":"2023-02-26T21:02:28.68915Z","shell.execute_reply.started":"2023-02-26T21:02:28.399562Z","shell.execute_reply":"2023-02-26T21:02:28.688028Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"!zip -r pyradiomics.zip wheelhouse","metadata":{"execution":{"iopub.status.busy":"2023-02-26T21:02:28.690243Z","iopub.execute_input":"2023-02-26T21:02:28.690515Z","iopub.status.idle":"2023-02-26T21:02:32.157697Z","shell.execute_reply.started":"2023-02-26T21:02:28.690488Z","shell.execute_reply":"2023-02-26T21:02:32.156569Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"!ls","metadata":{"execution":{"iopub.status.busy":"2023-02-26T21:02:32.160178Z","iopub.execute_input":"2023-02-26T21:02:32.160548Z","iopub.status.idle":"2023-02-26T21:02:32.447111Z","shell.execute_reply.started":"2023-02-26T21:02:32.16052Z","shell.execute_reply":"2023-02-26T21:02:32.445859Z"},"trusted":true},"execution_count":null,"outputs":[]}]}