setup.py

pip is not installing my data_files. But easy_install does

余生长醉 提交于 2021-02-20 19:16:20
问题 This is going to be a short question. The source is here: https://github.com/exhuma/grc And the title explains my problem ;) I registered and uploaded the package to pypi . Now if I run easy_install grc , it works as expected. But if I run pip install grc , it installs properly, but does not install the data_files. I don't see why this is happening. Any ideas? 回答1: Maybe the files aren't installed in the path you expect. In Ubuntu 11.10, I see them under /usr/local/configs as it can be seen

How to extract dependencies information from a setup.py

左心房为你撑大大i 提交于 2021-02-20 06:12:38
问题 I have a python project, let's call it foobar , there is a setup.py script in project root directory like all Python projects. For example foobar setup.py setup.py file content: from ez_setup import use_setuptools use_setuptools() from setuptools import setup, find_packages setup( name='foobar', version='0.0.0', packages=find_packages(), install_requires=[ 'spam==1.2.3', 'eggs>=4.5.6', ], ) I need to get dependencies information from that setup.py file using Python. The part I want would be [

How to extract dependencies information from a setup.py

萝らか妹 提交于 2021-02-20 06:09:30
问题 I have a python project, let's call it foobar , there is a setup.py script in project root directory like all Python projects. For example foobar setup.py setup.py file content: from ez_setup import use_setuptools use_setuptools() from setuptools import setup, find_packages setup( name='foobar', version='0.0.0', packages=find_packages(), install_requires=[ 'spam==1.2.3', 'eggs>=4.5.6', ], ) I need to get dependencies information from that setup.py file using Python. The part I want would be [

python setup.py install ignores install_requires

荒凉一梦 提交于 2021-02-17 04:55:25
问题 I am unable to install the local packages using setup.py Here is the project structure: my-project/ lib/ local1/ local1.1.0.whl index.html local2/ local2.1.0.whl index.html setup.py setup.py import os from setuptools import setup setup(name='my project', version='1.0', description='my project', install_requires=[ 'lxml >= 4.3.0', 'local1 @ file://localhost/{}/lib/local1/local1.1.0.whl'.format(os.getcwd()), 'local2 @ file://localhost/{}/lib/local2/local2.2.0.whl'.format(os.getcwd()), ] ) I can

python setup.py install ignores install_requires

坚强是说给别人听的谎言 提交于 2021-02-17 04:55:13
问题 I am unable to install the local packages using setup.py Here is the project structure: my-project/ lib/ local1/ local1.1.0.whl index.html local2/ local2.1.0.whl index.html setup.py setup.py import os from setuptools import setup setup(name='my project', version='1.0', description='my project', install_requires=[ 'lxml >= 4.3.0', 'local1 @ file://localhost/{}/lib/local1/local1.1.0.whl'.format(os.getcwd()), 'local2 @ file://localhost/{}/lib/local2/local2.2.0.whl'.format(os.getcwd()), ] ) I can

Use 'conda install' instead of 'pip install' for setup.py packages

与世无争的帅哥 提交于 2021-02-11 09:11:12
问题 I want to install fastai using setup.py in a project. The nicest way, if I have a conda environment, is to use the conda install command conda install -c pytorch -c fastai fastai . Unfortunately, if I just add fastai as a requirement, it gets installed using pip, which I have experienced issues with. Simply, is there a way to install fastai using conda a setup.py file (using the conda install command)? 回答1: As far as I know, conda package manager does not understand setup.py . As a result,

Use 'conda install' instead of 'pip install' for setup.py packages

半城伤御伤魂 提交于 2021-02-11 09:10:15
问题 I want to install fastai using setup.py in a project. The nicest way, if I have a conda environment, is to use the conda install command conda install -c pytorch -c fastai fastai . Unfortunately, if I just add fastai as a requirement, it gets installed using pip, which I have experienced issues with. Simply, is there a way to install fastai using conda a setup.py file (using the conda install command)? 回答1: As far as I know, conda package manager does not understand setup.py . As a result,

Use 'conda install' instead of 'pip install' for setup.py packages

﹥>﹥吖頭↗ 提交于 2021-02-11 09:10:01
问题 I want to install fastai using setup.py in a project. The nicest way, if I have a conda environment, is to use the conda install command conda install -c pytorch -c fastai fastai . Unfortunately, if I just add fastai as a requirement, it gets installed using pip, which I have experienced issues with. Simply, is there a way to install fastai using conda a setup.py file (using the conda install command)? 回答1: As far as I know, conda package manager does not understand setup.py . As a result,

Use 'conda install' instead of 'pip install' for setup.py packages

为君一笑 提交于 2021-02-11 09:09:27
问题 I want to install fastai using setup.py in a project. The nicest way, if I have a conda environment, is to use the conda install command conda install -c pytorch -c fastai fastai . Unfortunately, if I just add fastai as a requirement, it gets installed using pip, which I have experienced issues with. Simply, is there a way to install fastai using conda a setup.py file (using the conda install command)? 回答1: As far as I know, conda package manager does not understand setup.py . As a result,

Install python repository without parent directory structure

假装没事ソ 提交于 2021-02-11 02:57:55
问题 I have a repository I inherited used by a lot of teams, lots of scripts call it, and it seems like its going to be a real headache to make any structural changes to it. I would like to make this repo installable somehow. It is structured like this: my_repo/ scripts.py If it was my repository, I would change the structure like so and make it installable, and run python setup.py install : my_repo/ setup.py my_repo/ __init__.py scripts.py If this is not feasible (and it sounds like it might not