Giter VIP home page Giter VIP logo

Comments (4)

Ubadub avatar Ubadub commented on August 16, 2024

@anoopkunchukuttan I am unable to make this available in Conda Forge because your setup.py script is improperly configured: it does not include the version.txt file, even though this is required by the script itself. In order for the package to include this file, I believe you have to pass this argument to setuptools.setup in setup.py:

package_data={'indicnlp': ['version.txt']}

Otherwise, when you run setup.py from the PIP-downloaded package, it will fail to find version.txt and thus the setup script will abort.

Can you make this change? Or will you accept a PR if I submit one for this? Thank you.

from indic_nlp_library.

Ubadub avatar Ubadub commented on August 16, 2024

I have submitted a PR for this here: #64

from indic_nlp_library.

anoopkunchukuttan avatar anoopkunchukuttan commented on August 16, 2024

Sorry for the delay @Ubadub

  • You can add me as the recipe maintainer.
  • There is already a version.txt inside the indicnlp directory, and version info is passed in as parameter to the setup function.

Let me know if that works, or package_data needs to be set as you mention.

from indic_nlp_library.

Ubadub avatar Ubadub commented on August 16, 2024

Thanks for your reply.

There is already a version.txt inside the indicnlp directory, and version info is passed in as parameter to the setup function.

The version.txt file is not bundled with the pip package, because pip only bundles .py files by default, and so when the source files are downloaded by Conda, it is not included. Thus, when conda executes the setup.py script, it results in an error, because the file is not there. In this PR, I have made the appropriate change so that the version.txt file does get bundled with the pip package.

Does that make sense? You can check this for yourself by running python setup.py sdist. You will notice that the resultant folder does not contain version.txt.

Let me know if you have any other questions.

from indic_nlp_library.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.