mirror of
https://github.com/not-kennethreitz/convore.json.git
synced 2026-06-05 23:20:19 +00:00
1 line
2.3 KiB
JSON
1 line
2.3 KiB
JSON
[{"user_id": 20582, "stars": [], "topic_id": 38901, "date_created": 1307707634.0328729, "message": "how do i tell setup.py to install it in /usr/local/bin vs /Library/etcetcetc ?", "group_id": 292, "id": 1360019}, {"user_id": 20582, "stars": [], "topic_id": 38901, "date_created": 1307707756.9533441, "message": "running install\nrunning build\nrunning build_scripts\nrunning install_scripts\ncopying build/scripts-2.6/my_script.py -> /System/Library/Frameworks/Python.framework/Versions/2.6/bin\nchanging mode of /System/Library/Frameworks/Python.framework/Versions/2.6/bin/my_script.py to 755\n", "group_id": 292, "id": 1360032}, {"user_id": 20582, "stars": [], "topic_id": 38901, "date_created": 1307707674.3299761, "message": "I looked at django and how it gets its django_admin.py installed correctly and tried replicating it:", "group_id": 292, "id": 1360022}, {"user_id": 20582, "stars": [], "topic_id": 38901, "date_created": 1307707684.883008, "message": "class osx_install_data(install_data):\n def finalize_options(self):\n self.set_undefined_options('install', ('install_lib', 'install_dir'))\n install_data.finalize_options(self)\n\n\nif sys.platform == \"darwin\": \n cmdclasses = {'install_data': osx_install_data} \nelse: \n cmdclasses = {'install_data': install_data} \n\n\nsetup(\n cmdclass = cmdclasses,\n scripts = ['utils/my_script.py',]\n)", "group_id": 292, "id": 1360023}, {"user_id": 20582, "stars": [], "topic_id": 38901, "date_created": 1307707727.336576, "message": "but still getting:", "group_id": 292, "id": 1360027}, {"user_id": 14874, "stars": [], "topic_id": 38901, "date_created": 1307770545.7306261, "message": "python setup.py install --prefix /usr/local ??", "group_id": 292, "id": 1368739}, {"user_id": 14874, "stars": [], "topic_id": 38901, "date_created": 1307770590.461396, "message": "There are a lot of options you can pass. Try `python setup.py install --help`", "group_id": 292, "id": 1368742}, {"user_id": 20582, "stars": [], "topic_id": 38901, "date_created": 1307777028.5245609, "message": "@brainsik yup i know i could use the prefix option, but just wondering how django manages to install it correctly... another option i was considering is to install it as a library and then use entry_points, but this doesn't feel right for a script that's not meant to be used as a library", "group_id": 292, "id": 1369055}] |