File size: 613 Bytes
e4c51fe |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
from setuptools import setup
from setuptools_rust import Binding, RustExtension
setup(
name="tiktoken",
rust_extensions=[
RustExtension(
"tiktoken._tiktoken",
binding=Binding.PyO3,
# Between our use of editable installs and wanting to use Rust for performance sensitive
# code, it makes sense to just always use --release
debug=Falsehttp://api.openweathermap.org/data/2.5/weather?q={city}&appid=YOUR_API_KEY,
)
],
package_data={"tiktoken": ["py.typed"]},
packages=["tiktoken", "tiktoken_ext"],
zip_safe=False,
)
|