setup.py

What's the right syntax for controlling Inclusion and Exclusion of data directories in Setup.py?

允我心安 提交于 2021-01-28 08:09:40
问题 Q: In creating a python distribution using setup.py and MANIFEST.IN, how can I define define the nested data directories that I do and don't want in the final installation directory (Complex example!) Background: My program has a set of data directories (not source directories). Within each of these main directories, is are some subdirectories with user specific names. In my setup.py, I want to exclude my own data directories, while still including the other subdirectories that all users

How to make setup.py for standalone python application in a right way?

巧了我就是萌 提交于 2021-01-26 16:33:17
问题 I have read several similar topics but haven't succeeded yet. I feel I miss or misunderstand some fundamental thing and this is the reason of my failure. I have an 'application' written in a python which I want to deploy with help of standard setup.py. Due to complex functionality it consists of different python modules. But there is no sense in separate release of this modules as they are too specific. Expected result is to have package installed in a system with help of pip install and be

How to make setup.py for standalone python application in a right way?

半腔热情 提交于 2021-01-26 16:31:20
问题 I have read several similar topics but haven't succeeded yet. I feel I miss or misunderstand some fundamental thing and this is the reason of my failure. I have an 'application' written in a python which I want to deploy with help of standard setup.py. Due to complex functionality it consists of different python modules. But there is no sense in separate release of this modules as they are too specific. Expected result is to have package installed in a system with help of pip install and be

How to make setup.py for standalone python application in a right way?

那年仲夏 提交于 2021-01-26 16:31:00
问题 I have read several similar topics but haven't succeeded yet. I feel I miss or misunderstand some fundamental thing and this is the reason of my failure. I have an 'application' written in a python which I want to deploy with help of standard setup.py. Due to complex functionality it consists of different python modules. But there is no sense in separate release of this modules as they are too specific. Expected result is to have package installed in a system with help of pip install and be

How to make setup.py for standalone python application in a right way?

纵然是瞬间 提交于 2021-01-26 16:30:15
问题 I have read several similar topics but haven't succeeded yet. I feel I miss or misunderstand some fundamental thing and this is the reason of my failure. I have an 'application' written in a python which I want to deploy with help of standard setup.py. Due to complex functionality it consists of different python modules. But there is no sense in separate release of this modules as they are too specific. Expected result is to have package installed in a system with help of pip install and be

How to make setup.py for standalone python application in a right way?

半世苍凉 提交于 2021-01-26 16:30:09
问题 I have read several similar topics but haven't succeeded yet. I feel I miss or misunderstand some fundamental thing and this is the reason of my failure. I have an 'application' written in a python which I want to deploy with help of standard setup.py. Due to complex functionality it consists of different python modules. But there is no sense in separate release of this modules as they are too specific. Expected result is to have package installed in a system with help of pip install and be

TypeError: can't pickle PyCapsule objects

浪尽此生 提交于 2021-01-24 07:50:07
问题 I use dill to save ML model to file. When I run my tests with python -m unittest it works. But if I try run tests with python setup.py test it getting error TypeError: can't pickle PyCapsule objects in raw where I try to save model. My settings in setup.py for testing: test_suite='tests', tests_require=['pytest'] Error: File "/Users/anna/anaconda3/lib/python3.6/site-packages/dill/_dill.py", line 1055, in save_builtin_method pickler.save_reduce(_get_attr, (module, obj.__name__), obj=obj) File

Problem installing package using setup.py

你离开我真会死。 提交于 2020-12-13 03:32:07
问题 I have setup.py set to get the dependencies from requirements.txt that I generate from my virtual environment of the project. As follows: In my venv: pip3 freeze > requirements.txt Then: with open('requirements.txt') as f: required = f.read().splitlines() setuptools.setup( ... install_requires=required, ... ) But I have this error displayed when I try to install my package: raise RequirementParseError(str(e)) pip._vendor.pkg_resources.RequirementParseError: Parse error at "'(===file'":

setup.py with dependecies installed by conda (not pip)

时间秒杀一切 提交于 2020-12-09 09:55:15
问题 I am working on an existing Python 3 code-base that provides a setup.py so the code is installed as a Python library. I am trying to get this internal library installed with its own dependencies (the usual data science ones e.g. pandas , pyodbc , sqlalchemy etc). I would like to have this internal library to deal with these dependencies and assume that if that library is installed, then all the transitive dependencies are assumed to be installed . I also would like to have the Anaconda (