-
-
Notifications
You must be signed in to change notification settings - Fork 423
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added setup.py file so that we can install 'q' directly from git or pypi... #91
base: master
Are you sure you want to change the base?
Conversation
…ypi (if uploaded there)
Hi @ralhei sorry for the late reply, Thanks a lot for your input and your efforts. In regard to installing using pip install - While it's another easy way to install q, it collides with my plans regarding q and python. I plan to provide q as a python module so q's capabilities will also be exposed as an API (e.g. import qtextasdata ...), and I treat the command-line variation as "non python specific", meaning that the fact that q is written in python is incidental. Using pip install for installing the command line variation, although useful, contradicts it. For example, I'm not sure how "uninstalls" are supposed to be performed by pip for q. Another point is that in all other installation forms, q is installed on /usr/bin/q and using pip it seems to be installed in /usr/local/bin/q. When I make the python module public, I will definitely consider using what you're suggesting here so the q command line can be installed alongside with it. In regard to the license, you're right that it's not exposed properly. The code does say which license is it, but it's not exposed in the README/site. The license is GPLv3, similar to many command line tools. Hope you understand the reasoning behind my decision, |
|
Hi Ralph, I see your point about the virtualenv installation. Also, in regard to my plan of providing a python module - The plan is definitely to provide a pip install method of installing q, but my plan is to change the project structure so it becomes a "standard python module" and not just add setup.py. However, adding a setup.py, perhaps in a subfolder so it doesn't clutter the root project folder, can provide the "pip instlal git://" capability without hurting almost anything. Also, I'm hardly an expert on python packaging, but i believe that providing an uninstall is probably just adding some stuff to setup.py. I'll take a look at that. I'll think about it some more and decide what to do. Thanks for the input |
|
If you want
To
See the "Automatic script creation" docs for setuptools for more info. I agree that a setup.py file would be helpful. |
Nice approach - thanks for your hint! |
Hi Harel,
just in case you don't mind I have added a setup.py file to your q package. This way it is possible to directly install q from github with
One note: it would be great if you could add a license to 'q', otherwise nobody knows how to handle it from a legal point of view (this includes providing patches etc).
Ciao ciao
Ralph