Category : setup.py

My goal is to access a function called train_test_split(…) from the file utils.py within dnn.py. My structure is the following: ├───MachineLearning │ └───src │ ├───deep_learning | └─── dnn.py | └─── __init__.py │ └───utils | └─── preprocessing.py | └─── __init__.py │ └───readme.md │ └───setup.py I don’t want to use or change my windows path because it ..

Read more

setuptools.setup( name=’mat_8′, version=’0.0.1′, description=’Integral Mat-8 Functions’, install_requires=REQUIRED_PACKAGES, packages=setuptools.find_packages(), ext_modules=cythonize("mat_8/numerical_calcs.pyx", language_level=3), package_data={"mat_8": ["numerical_calcs.pyx", "tables/Beta_tables.json", "tables/F_tables.json", "tables/G_0_Gb_tables.json", "tables/G_0_Gm_tables.json", "tables/G_Gb_tables.json", "tables/G_Gm_tables.json", "tables/Htables.json" ]} ) Here is the setup.py configuration. mat_8 is a python package having empty __init__.py file and numerical_calcs.pyx is child of ‘mat_8’ folder. I am trying to do these setps Create tar.gz by python setup.py sdist ..

Read more

I have a package structure like this: ├── LICENSE ├── README.md ├── main │   ├── __init__.py │   ├── application.py │   ├── core_function │   │   ├── __init__.py │   │   └── maps │   │   ├── Taiwan │   │   ├── Taiwan_detailed │   │   └── taiwan.txt └── setup.py I try to wrap this package by python setup.py develop. When ..

Read more

I would like to know how I can include pytorch LTS version in my setup.py file for a library. From the instructions on https://pytorch.org/get-started/locally/#start-locally , we can see that it needs additional information to find the package. Here is the command they suggest : pip3 install torch==1.8.2+cu111 torchvision==0.9.2+cu111 torchaudio==0.8.2 -f https://download.pytorch.org/whl/lts/1.8/torch_lts.html Note the flag at ..

Read more